org.sblim.slp

Class ServiceLocationException

public class ServiceLocationException extends Exception

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.
Field Summary
static shortAUTHENTICATION_ABSENT
The DA expected URL and ATTR authentication in the SrvReg and did not receive it.
static shortAUTHENTICATION_FAILED
The DA detected an authentication error in an Authentication block.
static shortAUTHENTICATION_UNKNOWN
The DA or SA receives a request for an unsupported SLP SPI.
static shortBUFFER_OVERFLOW
BUFFER_OVERFLOW
static shortDA_BUSY
UA or SA SHOULD retry, using exponential back off.
static shortINTERNAL_ERROR
The DA (or SA) is too sick to respond.
static shortINTERNAL_SYSTEM_ERROR
INTERNAL_SYSTEM_ERROR
static shortINVALID_REGISTRATION
The SrvReg has problems -- e.g., a zero lifetime or an omitted Language Tag.
static shortINVALID_UPDATE
The DA received a SrvReg without FRESH set, for an unregistered service or with inconsistent Service Types.
static shortLANGUAGE_NOT_SUPPORTED
There is data for the service type in the scope in the AttrRqst or SrvRqst, but not in the requested language.
static shortNETWORK_ERROR
NETWORK_ERROR
static shortNETWORK_INIT_FAILED
NETWORK_INIT_FAILED
static shortNETWORK_TIMED_OUT
NETWORK_TIMED_OUT
static shortNOT_IMPLEMENTED
NOT_IMPLEMENTED
static shortOK
OK
static shortOPTION_NOT_SUPPORTED
The DA (or SA) received an unknown option from the mandatory range (see section 9.1).
static shortPARSE_ERROR
The message fails to obey SLP syntax.
static shortPREVIOUS_RESPONDER_OVERFLOW
PREVIOUS_RESPONDER_OVERFLOW
static shortREFRESH_REJECTED
The SA sent a SrvReg or partial SrvDereg to a DA more frequently than the DA's min-refresh-interval.
static shortREQUEST_NOT_SUPPORTED
The SA received an AttrRqst or SrvTypeRqst and does not support it.
static shortSCOPE_NOT_SUPPORTED
The SLP message did not include a scope in its supported by the SA or DA.
static shortTYPE_ERROR
TYPE_ERROR
static shortVERSION_NOT_SUPPORTED
Unsupported version number in message header.
Constructor Summary
ServiceLocationException(short pErrorCode)
Ctor.
ServiceLocationException(short pErrorCode, Throwable pCause)
Ctor.
ServiceLocationException(short pErrorCode, String pMessage, Throwable pCause)
Ctor.
ServiceLocationException(short pErrorCode, String pMessage)
Ctor.
Method Summary
shortgetErrorCode()
Return the error code.

Field Detail

AUTHENTICATION_ABSENT

public static final short AUTHENTICATION_ABSENT
The DA expected URL and ATTR authentication in the SrvReg and did not receive it.

AUTHENTICATION_FAILED

public static final short AUTHENTICATION_FAILED
The DA detected an authentication error in an Authentication block.

AUTHENTICATION_UNKNOWN

public static final short AUTHENTICATION_UNKNOWN
The DA or SA receives a request for an unsupported SLP SPI.

BUFFER_OVERFLOW

public static final short BUFFER_OVERFLOW
BUFFER_OVERFLOW

DA_BUSY

public static final short DA_BUSY
UA or SA SHOULD retry, using exponential back off.

INTERNAL_ERROR

public static final short INTERNAL_ERROR
The DA (or SA) is too sick to respond.

INTERNAL_SYSTEM_ERROR

public static final short INTERNAL_SYSTEM_ERROR
INTERNAL_SYSTEM_ERROR

INVALID_REGISTRATION

public static final short INVALID_REGISTRATION
The SrvReg has problems -- e.g., a zero lifetime or an omitted Language Tag.

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.

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.

NETWORK_ERROR

public static final short NETWORK_ERROR
NETWORK_ERROR

NETWORK_INIT_FAILED

public static final short NETWORK_INIT_FAILED
NETWORK_INIT_FAILED

NETWORK_TIMED_OUT

public static final short NETWORK_TIMED_OUT
NETWORK_TIMED_OUT

NOT_IMPLEMENTED

public static final short NOT_IMPLEMENTED
NOT_IMPLEMENTED

OK

public static final short OK
OK

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).

PARSE_ERROR

public static final short PARSE_ERROR
The message fails to obey SLP syntax.

PREVIOUS_RESPONDER_OVERFLOW

public static final short PREVIOUS_RESPONDER_OVERFLOW
PREVIOUS_RESPONDER_OVERFLOW

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.

REQUEST_NOT_SUPPORTED

public static final short REQUEST_NOT_SUPPORTED
The SA received an AttrRqst or SrvTypeRqst and does not support it.

SCOPE_NOT_SUPPORTED

public static final short SCOPE_NOT_SUPPORTED
The SLP message did not include a scope in its supported by the SA or DA.

TYPE_ERROR

public static final short TYPE_ERROR
TYPE_ERROR

VERSION_NOT_SUPPORTED

public static final short VERSION_NOT_SUPPORTED
Unsupported version number in message header.

Constructor Detail

ServiceLocationException

public ServiceLocationException(short pErrorCode)
Ctor.

Parameters: pErrorCode One of the ec constants in this class

ServiceLocationException

public ServiceLocationException(short pErrorCode, Throwable pCause)
Ctor.

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

ServiceLocationException

public ServiceLocationException(short pErrorCode, String pMessage, Throwable pCause)
Ctor.

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

ServiceLocationException

public ServiceLocationException(short pErrorCode, String pMessage)
Ctor.

Parameters: pErrorCode One of the error code constants in this class pMessage 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

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