#3 Custom UPnPError replies

closed
nobody
5
2004-01-17
2003-12-05
Thomas Schulz
No

Hi,

it would be nice to set a custom error code maybe
combined with an error message in case an action
couldn't be processed right. A method like

action.setUPnPError(int code, String message)

would be nice. The set of Error Code and Error Message
could be checked if the implementation of the
ActionListener returns a "false". In case it is set, the
reply could be changed according to the error message.

What do you think?

Regards, Thomas

Discussion

  • Satoshi Konno
    Satoshi Konno
    2003-12-15

    Logged In: YES
    user_id=559351

    Hi,

    I will change the actionListener and queryListner to return
    the UPnP error by user.

    Your suggestion is good about the actionListner ...
    I have to consider about the queryListner to return the error.

     
  • Thomas Schulz
    Thomas Schulz
    2004-01-16

    Logged In: YES
    user_id=839568

    Nice feature addon;=)

    unfortunately the changes to V1.30 (
    - changed classname org.cybergarage.upnp.UPnPError to org.
    cybergarage.upnp.UPnPStatus
    - changed method org.cybergarage.upnp.Action.getError() to
    org.cybergarage.upnp.Action.getStatus()
    - added method org.cybergarage.upnp.Action.setStatus(int
    Code, [String descr])
    )

    are not mentioned in the documentation. Just to mention,

    Respect, Thomas

     
  • Satoshi Konno
    Satoshi Konno
    2004-01-17

    Logged In: YES
    user_id=559351

    The method, action.setUPnPError(int code, String message),
    is implemented at v1.3. Please check it :-)

    The error code and message are returned only when the
    ActionListener returns a "false".

     
  • Satoshi Konno
    Satoshi Konno
    2004-01-17

    • status: open --> closed