org.sblim.slp
Class ServiceLocationException

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

public class ServiceLocationException
extends java.lang.RuntimeException

The ServiceLocationException class is thrown by all methods when exceptional conditions occur in the SLP framework. The error code property determines the exact nature of the condition, and an optional message may provide more information.

See Also:
Serialized Form

Field Summary
static short AUTHENTICATION_ABSENT
           
static short AUTHENTICATION_FAILED
           
static short AUTHENTICATION_UNKNOWN
           
static short BUFFER_OVERFLOW
           
static short DA_BUSY
           
static short INTERNAL_ERROR
           
static short INTERNAL_SYSTEM_ERROR
           
static short INVALID_REGISTRATION
           
static short INVALID_UPDATE
           
static short LANGUAGE_NOT_SUPPORTED
           
static short NETWORK_ERROR
           
static short NETWORK_INIT_FAILED
           
static short NETWORK_TIMED_OUT
           
static short NOT_IMPLEMENTED
           
static short OK
           
static short OPTION_NOT_SUPPORTED
           
static short PARSE_ERROR
           
static short PREVIOUS_RESPONDER_OVERFLOW
           
static short REFRESH_REJECTED
           
static short REQUEST_NOT_SUPPORTED
           
static short SCOPE_NOT_SUPPORTED
           
static short TYPE_ERROR
           
static short VERSION_NOT_SUPPORTED
           
 
Constructor Summary
ServiceLocationException(short pErrorCode)
          Ctor.
ServiceLocationException(short pErrorCode, java.lang.String pMessage)
          Ctor.
ServiceLocationException(short pErrorCode, java.lang.String pMessage, java.lang.Object pExtendedReason)
          Ctor.
ServiceLocationException(short pErrorCode, java.lang.String pMessage, java.lang.Object[] pExtendedReason)
          Ctor.
ServiceLocationException(short pErrorCode, java.lang.Throwable pCause)
          Ctor.
 
Method Summary
 short getErrorCode()
          Return the error code.
 java.lang.Object[] getExtendedReason()
          Gets the extended reason for this exception.
 java.lang.String getMessage()
          Gets the message associated to this exception.
 void setExtendedReason(java.lang.Object[] pExtendedReason)
          Specifies the extended reason for this exception.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

OK

public static final short OK
See Also:
Constant Field Values

LANGUAGE_NOT_SUPPORTED

public static final short LANGUAGE_NOT_SUPPORTED
See Also:
Constant Field Values

PARSE_ERROR

public static final short PARSE_ERROR
See Also:
Constant Field Values

INVALID_REGISTRATION

public static final short INVALID_REGISTRATION
See Also:
Constant Field Values

SCOPE_NOT_SUPPORTED

public static final short SCOPE_NOT_SUPPORTED
See Also:
Constant Field Values

AUTHENTICATION_UNKNOWN

public static final short AUTHENTICATION_UNKNOWN
See Also:
Constant Field Values

AUTHENTICATION_ABSENT

public static final short AUTHENTICATION_ABSENT
See Also:
Constant Field Values

AUTHENTICATION_FAILED

public static final short AUTHENTICATION_FAILED
See Also:
Constant Field Values

VERSION_NOT_SUPPORTED

public static final short VERSION_NOT_SUPPORTED
See Also:
Constant Field Values

INTERNAL_ERROR

public static final short INTERNAL_ERROR
See Also:
Constant Field Values

DA_BUSY

public static final short DA_BUSY
See Also:
Constant Field Values

OPTION_NOT_SUPPORTED

public static final short OPTION_NOT_SUPPORTED
See Also:
Constant Field Values

INVALID_UPDATE

public static final short INVALID_UPDATE
See Also:
Constant Field Values

REQUEST_NOT_SUPPORTED

public static final short REQUEST_NOT_SUPPORTED
See Also:
Constant Field Values

REFRESH_REJECTED

public static final short REFRESH_REJECTED
See Also:
Constant Field Values

NOT_IMPLEMENTED

public static final short NOT_IMPLEMENTED
See Also:
Constant Field Values

NETWORK_INIT_FAILED

public static final short NETWORK_INIT_FAILED
See Also:
Constant Field Values

NETWORK_TIMED_OUT

public static final short NETWORK_TIMED_OUT
See Also:
Constant Field Values

NETWORK_ERROR

public static final short NETWORK_ERROR
See Also:
Constant Field Values

INTERNAL_SYSTEM_ERROR

public static final short INTERNAL_SYSTEM_ERROR
See Also:
Constant Field Values

TYPE_ERROR

public static final short TYPE_ERROR
See Also:
Constant Field Values

BUFFER_OVERFLOW

public static final short BUFFER_OVERFLOW
See Also:
Constant Field Values

PREVIOUS_RESPONDER_OVERFLOW

public static final short PREVIOUS_RESPONDER_OVERFLOW
See Also:
Constant Field Values
Constructor Detail

ServiceLocationException

public ServiceLocationException(short pErrorCode)
Ctor.

Parameters:
pErrorCode - One of the ec constants in this class

ServiceLocationException

public ServiceLocationException(short pErrorCode,
                                java.lang.Throwable pCause)
Ctor.

Parameters:
pErrorCode - One of the ec constants in this class
pCause - The cause

ServiceLocationException

public ServiceLocationException(short pErrorCode,
                                java.lang.String pMessage,
                                java.lang.Object[] pExtendedReason)
Ctor.

Parameters:
pErrorCode - One of the ec constants in this class
pMessage - A more specific message
pExtendedReason - Extended reason

ServiceLocationException

public ServiceLocationException(short pErrorCode,
                                java.lang.String pMessage)
Ctor.

Parameters:
pErrorCode - One of the ec constants in this class
pMessage - A more specific message

ServiceLocationException

public ServiceLocationException(short pErrorCode,
                                java.lang.String pMessage,
                                java.lang.Object pExtendedReason)
Ctor.

Parameters:
pErrorCode - One of the ec constants in this class
pMessage - A more specific message
pExtendedReason - Extended reason
Method Detail

getErrorCode

public short getErrorCode()
Return the error code. The error code takes on one of the static field values.

Returns:
The error code

setExtendedReason

public void setExtendedReason(java.lang.Object[] pExtendedReason)
Specifies the extended reason for this exception.

Parameters:
pExtendedReason -

getExtendedReason

public java.lang.Object[] getExtendedReason()
Gets the extended reason for this exception.

Returns:
The extended reason

getMessage

public java.lang.String getMessage()
Gets the message associated to this exception.

Overrides:
getMessage in class java.lang.Throwable
Returns:
The message

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable


Copyright © 2005, 2006 IBM Corporation. All Rights Reserved.