org.livetribe.slp
Class ServiceLocationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.livetribe.slp.ServiceLocationException
All Implemented Interfaces:
Serializable

public class ServiceLocationException
extends Exception

Thrown when something goes wrong in Service Location Protocol operations. Details about what happened are provided by a error code.

Version:
$Rev: 258 $ $Date: 2006-08-23 15:45:17 +0200 (Wed, 23 Aug 2006) $
See Also:
Serialized Form

Field Summary
static int AUTHENTICATION_ABSENT
          Error code indicating that an authentication was expected, but not received.
static int AUTHENTICATION_FAILED
          Error code indicating that the authentication failed.
static int AUTHENTICATION_UNKNOWN
          Error code indicating that an authentication has been requested, but the DirectoryAgent or ServiceAgent does not support it.
static int BUFFER_OVERFLOW
          Error code indicating that an outgoing request exceeded the max transmission unit.
static int BUSY_NOW
          Error code indicating that the server is busy and that the client should retry.
static int INTERNAL_ERROR
          Error code indicating that the ServiceAgent or DirectoryAgent cannot respond.
static int INTERNAL_SYSTEM_ERROR
          Error code indicating that an internal, non-recoverable, error happened.
static int INVALID_REGISTRATION
          Error code indicating that a service registration failed because of invalid arguments.
static int INVALID_UPDATE
          Error code indicating that a service update failed because of invalid arguments.
static int LANGUAGE_NOT_SUPPORTED
          Error code indicating that DirectoryAgents or ServiceAgents have information in other languages other than the one requested.
static int MESSAGE_NOT_SUPPORTED
          Error code indicating that the SLP implementation does not support a message.
static int NETWORK_ERROR
          Error code indicating that a generic network failure happened.
static int NETWORK_INIT_FAILED
          Error code indicating that the network initialization failed.
static int NETWORK_TIMED_OUT
          Error code indicating that a unicast request timed out.
static int NOT_IMPLEMENTED
          Error code indicating that the API exists, but it's not implemented.
static int OPTION_NOT_UNDERSTOOD
          Error code indicating that a mandatory extension is not understood by the implementation.
static int PARSE_ERROR
          Error code indicating that a parse error has occurred while parsing attributes string, filter expressions or SLP messages.
static int REFRESH_REJECTED
          Error code indicating that a ServiceAgent sent re-registrations to a DirectoryAgent more frequently than allowed.
static int SCOPE_NOT_SUPPORTED
          Error code indicating that the DirectoryAgent or ServiceAgent does not support the scope of the requested operation.
static int TYPE_ERROR
          Error code indicating that attributes specified during registration do no match those present in the service template.
static int VERSION_NOT_SUPPORTED
          Error code indicating that the SLP version is not supported.
 
Constructor Summary
ServiceLocationException(int errorCode)
           
ServiceLocationException(String message, int errorCode)
           
ServiceLocationException(String message, Throwable cause, int errorCode)
           
ServiceLocationException(Throwable cause, int errorCode)
           
 
Method Summary
 int getErrorCode()
          Returns the error code that specifies the problem that caused this exception.
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LANGUAGE_NOT_SUPPORTED

public static final int LANGUAGE_NOT_SUPPORTED
Error code indicating that DirectoryAgents or ServiceAgents have information in other languages other than the one requested.

See Also:
Constant Field Values

PARSE_ERROR

public static final int PARSE_ERROR
Error code indicating that a parse error has occurred while parsing attributes string, filter expressions or SLP messages.

See Also:
Constant Field Values

INVALID_REGISTRATION

public static final int INVALID_REGISTRATION
Error code indicating that a service registration failed because of invalid arguments.

See Also:
Constant Field Values

SCOPE_NOT_SUPPORTED

public static final int SCOPE_NOT_SUPPORTED
Error code indicating that the DirectoryAgent or ServiceAgent does not support the scope of the requested operation.

See Also:
Constant Field Values

AUTHENTICATION_UNKNOWN

public static final int AUTHENTICATION_UNKNOWN
Error code indicating that an authentication has been requested, but the DirectoryAgent or ServiceAgent does not support it.

See Also:
Constant Field Values

AUTHENTICATION_ABSENT

public static final int AUTHENTICATION_ABSENT
Error code indicating that an authentication was expected, but not received.

See Also:
Constant Field Values

AUTHENTICATION_FAILED

public static final int AUTHENTICATION_FAILED
Error code indicating that the authentication failed.

See Also:
Constant Field Values

VERSION_NOT_SUPPORTED

public static final int VERSION_NOT_SUPPORTED
Error code indicating that the SLP version is not supported.

See Also:
Constant Field Values

INTERNAL_ERROR

public static final int INTERNAL_ERROR
Error code indicating that the ServiceAgent or DirectoryAgent cannot respond.

See Also:
Constant Field Values

BUSY_NOW

public static final int BUSY_NOW
Error code indicating that the server is busy and that the client should retry.

See Also:
Constant Field Values

OPTION_NOT_UNDERSTOOD

public static final int OPTION_NOT_UNDERSTOOD
Error code indicating that a mandatory extension is not understood by the implementation.

See Also:
Constant Field Values

INVALID_UPDATE

public static final int INVALID_UPDATE
Error code indicating that a service update failed because of invalid arguments.

See Also:
Constant Field Values

MESSAGE_NOT_SUPPORTED

public static final int MESSAGE_NOT_SUPPORTED
Error code indicating that the SLP implementation does not support a message.

See Also:
Constant Field Values

REFRESH_REJECTED

public static final int REFRESH_REJECTED
Error code indicating that a ServiceAgent sent re-registrations to a DirectoryAgent more frequently than allowed.

See Also:
Constant Field Values

NOT_IMPLEMENTED

public static final int NOT_IMPLEMENTED
Error code indicating that the API exists, but it's not implemented.

See Also:
Constant Field Values

NETWORK_INIT_FAILED

public static final int NETWORK_INIT_FAILED
Error code indicating that the network initialization failed.

See Also:
Constant Field Values

NETWORK_TIMED_OUT

public static final int NETWORK_TIMED_OUT
Error code indicating that a unicast request timed out.

See Also:
Constant Field Values

NETWORK_ERROR

public static final int NETWORK_ERROR
Error code indicating that a generic network failure happened.

See Also:
Constant Field Values

INTERNAL_SYSTEM_ERROR

public static final int INTERNAL_SYSTEM_ERROR
Error code indicating that an internal, non-recoverable, error happened.

See Also:
Constant Field Values

TYPE_ERROR

public static final int TYPE_ERROR
Error code indicating that attributes specified during registration do no match those present in the service template.

See Also:
Constant Field Values

BUFFER_OVERFLOW

public static final int BUFFER_OVERFLOW
Error code indicating that an outgoing request exceeded the max transmission unit.

See Also:
Constant Field Values
Constructor Detail

ServiceLocationException

public ServiceLocationException(int errorCode)

ServiceLocationException

public ServiceLocationException(String message,
                                int errorCode)

ServiceLocationException

public ServiceLocationException(Throwable cause,
                                int errorCode)

ServiceLocationException

public ServiceLocationException(String message,
                                Throwable cause,
                                int errorCode)
Method Detail

getErrorCode

public int getErrorCode()
Returns the error code that specifies the problem that caused this exception.


toString

public String toString()
Overrides:
toString in class Throwable


Copyright © 2006-2012 LiveTribe. All Rights Reserved.