Package org.sblim.slp
Class ServiceLocationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.sblim.slp.ServiceLocationException
-
- All Implemented Interfaces:
java.io.Serializable
public class ServiceLocationException extends java.lang.ExceptionThe 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
Fields Modifier and Type Field Description static shortAUTHENTICATION_ABSENTThe DA expected URL and ATTR authentication in the SrvReg and did not receive it.static shortAUTHENTICATION_FAILEDThe DA detected an authentication error in an Authentication block.static shortAUTHENTICATION_UNKNOWNThe DA or SA receives a request for an unsupported SLP SPI.static shortBUFFER_OVERFLOWBUFFER_OVERFLOWstatic shortDA_BUSYUA or SA SHOULD retry, using exponential back off.static shortINTERNAL_ERRORThe DA (or SA) is too sick to respond.static shortINTERNAL_SYSTEM_ERRORINTERNAL_SYSTEM_ERRORstatic shortINVALID_REGISTRATIONThe SrvReg has problems -- e.g., a zero lifetime or an omitted Language Tag.static shortINVALID_UPDATEThe DA received a SrvReg without FRESH set, for an unregistered service or with inconsistent Service Types.static shortLANGUAGE_NOT_SUPPORTEDThere is data for the service type in the scope in the AttrRqst or SrvRqst, but not in the requested language.static shortNETWORK_ERRORNETWORK_ERRORstatic shortNETWORK_INIT_FAILEDNETWORK_INIT_FAILEDstatic shortNETWORK_TIMED_OUTNETWORK_TIMED_OUTstatic shortNOT_IMPLEMENTEDNOT_IMPLEMENTEDstatic shortOKOKstatic shortOPTION_NOT_SUPPORTEDThe DA (or SA) received an unknown option from the mandatory range (see section 9.1).static shortPARSE_ERRORThe message fails to obey SLP syntax.static shortPREVIOUS_RESPONDER_OVERFLOWPREVIOUS_RESPONDER_OVERFLOWstatic shortREFRESH_REJECTEDThe SA sent a SrvReg or partial SrvDereg to a DA more frequently than the DA's min-refresh-interval.static shortREQUEST_NOT_SUPPORTEDThe SA received an AttrRqst or SrvTypeRqst and does not support it.static shortSCOPE_NOT_SUPPORTEDThe SLP message did not include a scope in itssupported by the SA or DA. static shortTYPE_ERRORTYPE_ERRORstatic shortVERSION_NOT_SUPPORTEDUnsupported version number in message header.
-
Constructor Summary
Constructors Constructor Description ServiceLocationException(short pErrorCode)Ctor.ServiceLocationException(short pErrorCode, java.lang.String pMessage)Ctor.ServiceLocationException(short pErrorCode, java.lang.String pMessage, java.lang.Throwable pCause)Ctor.ServiceLocationException(short pErrorCode, java.lang.Throwable pCause)Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description shortgetErrorCode()Return the error code.java.lang.StringgetMessage()Gets the message associated to this exception.
-
-
-
Field Detail
-
OK
public static final short OK
OK- See Also:
- Constant Field Values
-
LANGUAGE_NOT_SUPPORTED
public static final short LANGUAGE_NOT_SUPPORTED
There is data for the service type in the scope in the AttrRqst or SrvRqst, but not in the requested language.- See Also:
- Constant Field Values
-
PARSE_ERROR
public static final short PARSE_ERROR
The message fails to obey SLP syntax.- See Also:
- Constant Field Values
-
INVALID_REGISTRATION
public static final short INVALID_REGISTRATION
The SrvReg has problems -- e.g., a zero lifetime or an omitted Language Tag.- See Also:
- Constant Field Values
-
SCOPE_NOT_SUPPORTED
public static final short SCOPE_NOT_SUPPORTED
The SLP message did not include a scope in itssupported by the SA or DA. - See Also:
- Constant Field Values
-
AUTHENTICATION_UNKNOWN
public static final short AUTHENTICATION_UNKNOWN
The DA or SA receives a request for an unsupported SLP SPI.- See Also:
- Constant Field Values
-
AUTHENTICATION_ABSENT
public static final short AUTHENTICATION_ABSENT
The DA expected URL and ATTR authentication in the SrvReg and did not receive it.- See Also:
- Constant Field Values
-
AUTHENTICATION_FAILED
public static final short AUTHENTICATION_FAILED
The DA detected an authentication error in an Authentication block.- See Also:
- Constant Field Values
-
VERSION_NOT_SUPPORTED
public static final short VERSION_NOT_SUPPORTED
Unsupported version number in message header.- See Also:
- Constant Field Values
-
INTERNAL_ERROR
public static final short INTERNAL_ERROR
The DA (or SA) is too sick to respond.- See Also:
- Constant Field Values
-
DA_BUSY
public static final short DA_BUSY
UA or SA SHOULD retry, using exponential back off.- See Also:
- Constant Field Values
-
OPTION_NOT_SUPPORTED
public static final short OPTION_NOT_SUPPORTED
The DA (or SA) received an unknown option from the mandatory range (see section 9.1).- See Also:
- Constant Field Values
-
INVALID_UPDATE
public static final short INVALID_UPDATE
The DA received a SrvReg without FRESH set, for an unregistered service or with inconsistent Service Types.- See Also:
- Constant Field Values
-
REQUEST_NOT_SUPPORTED
public static final short REQUEST_NOT_SUPPORTED
The SA received an AttrRqst or SrvTypeRqst and does not support it.- See Also:
- Constant Field Values
-
REFRESH_REJECTED
public static final short REFRESH_REJECTED
The SA sent a SrvReg or partial SrvDereg to a DA more frequently than the DA's min-refresh-interval.- See Also:
- Constant Field Values
-
NOT_IMPLEMENTED
public static final short NOT_IMPLEMENTED
NOT_IMPLEMENTED- See Also:
- Constant Field Values
-
NETWORK_INIT_FAILED
public static final short NETWORK_INIT_FAILED
NETWORK_INIT_FAILED- See Also:
- Constant Field Values
-
NETWORK_TIMED_OUT
public static final short NETWORK_TIMED_OUT
NETWORK_TIMED_OUT- See Also:
- Constant Field Values
-
NETWORK_ERROR
public static final short NETWORK_ERROR
NETWORK_ERROR- See Also:
- Constant Field Values
-
INTERNAL_SYSTEM_ERROR
public static final short INTERNAL_SYSTEM_ERROR
INTERNAL_SYSTEM_ERROR- See Also:
- Constant Field Values
-
TYPE_ERROR
public static final short TYPE_ERROR
TYPE_ERROR- See Also:
- Constant Field Values
-
BUFFER_OVERFLOW
public static final short BUFFER_OVERFLOW
BUFFER_OVERFLOW- See Also:
- Constant Field Values
-
PREVIOUS_RESPONDER_OVERFLOW
public static final short PREVIOUS_RESPONDER_OVERFLOW
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 classpCause- The cause
-
ServiceLocationException
public ServiceLocationException(short pErrorCode, java.lang.String pMessage, java.lang.Throwable pCause)Ctor.- Parameters:
pErrorCode- One of the ec constants in this classpMessage- A more specific messagepCause-
-
ServiceLocationException
public ServiceLocationException(short pErrorCode, java.lang.String pMessage)Ctor.- Parameters:
pErrorCode- One of the error code constants in this classpMessage- A more specific message
-
-
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
-
getMessage
public java.lang.String getMessage()
Gets the message associated to this exception.- Overrides:
getMessagein classjava.lang.Throwable- Returns:
- The message
-
-