Class ServiceLocationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.sblim.slp.ServiceLocationException
- All Implemented Interfaces:
Serializable
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final short
The DA expected URL and ATTR authentication in the SrvReg and did not receive it.static final short
The DA detected an authentication error in an Authentication block.static final short
The DA or SA receives a request for an unsupported SLP SPI.static final short
BUFFER_OVERFLOWstatic final short
UA or SA SHOULD retry, using exponential back off.static final short
The DA (or SA) is too sick to respond.static final short
INTERNAL_SYSTEM_ERRORstatic final short
The SrvReg has problems -- e.g., a zero lifetime or an omitted Language Tag.static final short
The DA received a SrvReg without FRESH set, for an unregistered service or with inconsistent Service Types.static final short
There is data for the service type in the scope in the AttrRqst or SrvRqst, but not in the requested language.static final short
NETWORK_ERRORstatic final short
NETWORK_INIT_FAILEDstatic final short
NETWORK_TIMED_OUTstatic final short
NOT_IMPLEMENTEDstatic final short
OKstatic final short
The DA (or SA) received an unknown option from the mandatory range (see section 9.1).static final short
The message fails to obey SLP syntax.static final short
PREVIOUS_RESPONDER_OVERFLOWstatic final short
The SA sent a SrvReg or partial SrvDereg to a DA more frequently than the DA's min-refresh-interval.static final short
The SA received an AttrRqst or SrvTypeRqst and does not support it.static final short
The SLP message did not include a scope in its invalid input: '<'scope-list> supported by the SA or DA.static final short
TYPE_ERRORstatic final short
Unsupported version number in message header. -
Constructor Summary
ConstructorsConstructorDescriptionServiceLocationException
(short pErrorCode) Ctor.ServiceLocationException
(short pErrorCode, String pMessage) Ctor.ServiceLocationException
(short pErrorCode, String pMessage, Throwable pCause) Ctor.ServiceLocationException
(short pErrorCode, Throwable pCause) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionshort
Return the error code.Gets the message associated to this exception.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
OK
public static final short OKOK- See Also:
-
LANGUAGE_NOT_SUPPORTED
public static final short LANGUAGE_NOT_SUPPORTEDThere is data for the service type in the scope in the AttrRqst or SrvRqst, but not in the requested language.- See Also:
-
PARSE_ERROR
public static final short PARSE_ERRORThe message fails to obey SLP syntax.- See Also:
-
INVALID_REGISTRATION
public static final short INVALID_REGISTRATIONThe SrvReg has problems -- e.g., a zero lifetime or an omitted Language Tag.- See Also:
-
SCOPE_NOT_SUPPORTED
public static final short SCOPE_NOT_SUPPORTEDThe SLP message did not include a scope in its invalid input: '<'scope-list> supported by the SA or DA.- See Also:
-
AUTHENTICATION_UNKNOWN
public static final short AUTHENTICATION_UNKNOWNThe DA or SA receives a request for an unsupported SLP SPI.- See Also:
-
AUTHENTICATION_ABSENT
public static final short AUTHENTICATION_ABSENTThe DA expected URL and ATTR authentication in the SrvReg and did not receive it.- See Also:
-
AUTHENTICATION_FAILED
public static final short AUTHENTICATION_FAILEDThe DA detected an authentication error in an Authentication block.- See Also:
-
VERSION_NOT_SUPPORTED
public static final short VERSION_NOT_SUPPORTEDUnsupported version number in message header.- See Also:
-
INTERNAL_ERROR
public static final short INTERNAL_ERRORThe DA (or SA) is too sick to respond.- See Also:
-
DA_BUSY
public static final short DA_BUSYUA or SA SHOULD retry, using exponential back off.- See Also:
-
OPTION_NOT_SUPPORTED
public static final short OPTION_NOT_SUPPORTEDThe DA (or SA) received an unknown option from the mandatory range (see section 9.1).- See Also:
-
INVALID_UPDATE
public static final short INVALID_UPDATEThe DA received a SrvReg without FRESH set, for an unregistered service or with inconsistent Service Types.- See Also:
-
REQUEST_NOT_SUPPORTED
public static final short REQUEST_NOT_SUPPORTEDThe SA received an AttrRqst or SrvTypeRqst and does not support it.- See Also:
-
REFRESH_REJECTED
public static final short REFRESH_REJECTEDThe SA sent a SrvReg or partial SrvDereg to a DA more frequently than the DA's min-refresh-interval.- See Also:
-
NOT_IMPLEMENTED
public static final short NOT_IMPLEMENTEDNOT_IMPLEMENTED- See Also:
-
NETWORK_INIT_FAILED
public static final short NETWORK_INIT_FAILEDNETWORK_INIT_FAILED- See Also:
-
NETWORK_TIMED_OUT
public static final short NETWORK_TIMED_OUTNETWORK_TIMED_OUT- See Also:
-
NETWORK_ERROR
public static final short NETWORK_ERRORNETWORK_ERROR- See Also:
-
INTERNAL_SYSTEM_ERROR
public static final short INTERNAL_SYSTEM_ERRORINTERNAL_SYSTEM_ERROR- See Also:
-
TYPE_ERROR
public static final short TYPE_ERRORTYPE_ERROR- See Also:
-
BUFFER_OVERFLOW
public static final short BUFFER_OVERFLOWBUFFER_OVERFLOW- See Also:
-
PREVIOUS_RESPONDER_OVERFLOW
public static final short PREVIOUS_RESPONDER_OVERFLOWPREVIOUS_RESPONDER_OVERFLOW- See Also:
-
-
Constructor Details
-
ServiceLocationException
public ServiceLocationException(short pErrorCode) Ctor.- Parameters:
pErrorCode
- One of the ec constants in this class
-
ServiceLocationException
Ctor.- Parameters:
pErrorCode
- One of the ec constants in this classpCause
- The cause
-
ServiceLocationException
-
ServiceLocationException
Ctor.- Parameters:
pErrorCode
- One of the ec constants in this classpMessage
- A more specific message
-
-
Method Details
-
getErrorCode
public short getErrorCode()Return the error code. The error code takes on one of the static field values.- Returns:
- The error code
-
getMessage
Gets the message associated to this exception.- Overrides:
getMessage
in classThrowable
- Returns:
- The message
-