|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception ch.ethz.iks.slp.ServiceLocationException
public class ServiceLocationException
This exception is thrown whenever a part of the SLP framework causes an exception. The error code is a hint why the exception occured.
Field Summary | |
---|---|
static short |
AUTHENTICATION_ABSENT
The DA expected URL and ATTR authentication in the SrvReg and did not receive it. |
static short |
AUTHENTICATION_FAILED
Unsupported version number in message header. |
static short |
AUTHENTICATION_UNKNOWN
The DA or SA receives a request for an unsupported SLP SPI. |
static short |
BUFFER_OVERFLOW
The framework encountered a buffer overflow. |
static short |
INTERNAL_SYSTEM_ERROR
The framework encountered an internal system error. |
static short |
INVALID_REGISTRATION
The SrvReg has problems -- e.g., a zero lifetime or an omitted Language Tag. |
static short |
INVALID_UPDATE
The DA received a SrvReg without FRESH set, for an unregistered service or with inconsistent Service Types. |
static 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. |
static short |
NETWORK_ERROR
The network encountered an error. |
static short |
NETWORK_INIT_FAILED
The initialization of the framework failed. |
static short |
NETWORK_TIMED_OUT
The network timed out while the framework tried to send a message. |
static short |
NOT_IMPLEMENTED
The feature or extension is not implemented. |
static short |
PARSE_ERROR
The message fails to obey SLP syntax. |
static short |
REFRESH_REJECTED
The DA rejected the update because it was within the minimal update intervall. |
static short |
SCOPE_NOT_SUPPORTED
The SLP message did not include a scope in its scope-list supported by the SA or DA. |
static short |
TYPE_ERROR
The type was not well formed. |
Constructor Summary | |
---|---|
ServiceLocationException(short errcode,
java.lang.String message)
Create a new ServiceLocation instance. |
Method Summary | |
---|---|
short |
getErrorCode()
Get the error code of the exception. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final short LANGUAGE_NOT_SUPPORTED
public static final short PARSE_ERROR
public static final short INVALID_REGISTRATION
public static final short SCOPE_NOT_SUPPORTED
public static final short AUTHENTICATION_UNKNOWN
public static final short AUTHENTICATION_ABSENT
public static final short AUTHENTICATION_FAILED
public static final short INVALID_UPDATE
public static final short REFRESH_REJECTED
public static final short NOT_IMPLEMENTED
public static final short NETWORK_INIT_FAILED
public static final short NETWORK_TIMED_OUT
public static final short NETWORK_ERROR
public static final short INTERNAL_SYSTEM_ERROR
public static final short TYPE_ERROR
public static final short BUFFER_OVERFLOW
Constructor Detail |
---|
public ServiceLocationException(short errcode, java.lang.String message)
errcode
- the error code, one of the statically defined.message
- the message of the exception.Method Detail |
---|
public final short getErrorCode()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |