public class ServiceLocationException extends Exception implements Serializable
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
ServiceLocationException(short errcode,
String message)
Create a new ServiceLocation instance.
|
Modifier and Type | Method and Description |
---|---|
short |
getErrorCode()
Get the error code of the exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
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
public ServiceLocationException(short errcode, String message)
errcode
- the error code, one of the statically defined.message
- the message of the exception.Copyright © 2018 universAAL Consortium. All rights reserved.