ch.ethz.iks.slp
Class ServiceLocationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by ch.ethz.iks.slp.ServiceLocationException
All Implemented Interfaces:
java.io.Serializable

public class ServiceLocationException
extends java.lang.Exception
implements java.io.Serializable

This exception is thrown whenever a part of the SLP framework causes an exception. The error code is a hint why the exception occured.

Since:
0.1
Author:
Jan S. Rellermeyer, Systems Group, ETH Zurich
See Also:
Serialized Form

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

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 its scope-list supported 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
Unsupported version number in message header. INTERNAL_ERROR = 10: The DA (or SA) is too sick to respond.

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

REFRESH_REJECTED

public static final short REFRESH_REJECTED
The DA rejected the update because it was within the minimal update intervall.

See Also:
Constant Field Values

NOT_IMPLEMENTED

public static final short NOT_IMPLEMENTED
The feature or extension is not implemented.

See Also:
Constant Field Values

NETWORK_INIT_FAILED

public static final short NETWORK_INIT_FAILED
The initialization of the framework failed.

See Also:
Constant Field Values

NETWORK_TIMED_OUT

public static final short NETWORK_TIMED_OUT
The network timed out while the framework tried to send a message.

See Also:
Constant Field Values

NETWORK_ERROR

public static final short NETWORK_ERROR
The network encountered an error.

See Also:
Constant Field Values

INTERNAL_SYSTEM_ERROR

public static final short INTERNAL_SYSTEM_ERROR
The framework encountered an internal system error.

See Also:
Constant Field Values

TYPE_ERROR

public static final short TYPE_ERROR
The type was not well formed.

See Also:
Constant Field Values

BUFFER_OVERFLOW

public static final short BUFFER_OVERFLOW
The framework encountered a buffer overflow.

See Also:
Constant Field Values
Constructor Detail

ServiceLocationException

public ServiceLocationException(short errcode,
                                java.lang.String message)
Create a new ServiceLocation instance.

Parameters:
errcode - the error code, one of the statically defined.
message - the message of the exception.
Method Detail

getErrorCode

public final short getErrorCode()
Get the error code of the exception.

Returns:
the error code.


Copyright © 2008 Systems Group, ETH Zurich. All Rights Reserved.