org.sblim.slp

Class ServiceLocationException


public class ServiceLocationException
extends RuntimeException

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 short
AUTHENTICATION_ABSENT
static short
AUTHENTICATION_FAILED
static short
AUTHENTICATION_UNKNOWN
static short
BUFFER_OVERFLOW
static short
DA_BUSY
static short
INTERNAL_ERROR
static short
INTERNAL_SYSTEM_ERROR
static short
INVALID_REGISTRATION
static short
INVALID_UPDATE
static short
LANGUAGE_NOT_SUPPORTED
static short
NETWORK_ERROR
static short
NETWORK_INIT_FAILED
static short
NETWORK_TIMED_OUT
static short
NOT_IMPLEMENTED
static short
OK
static short
OPTION_NOT_SUPPORTED
static short
PARSE_ERROR
static short
PREVIOUS_RESPONDER_OVERFLOW
static short
REFRESH_REJECTED
static short
REQUEST_NOT_SUPPORTED
static short
SCOPE_NOT_SUPPORTED
static short
TYPE_ERROR
static short
VERSION_NOT_SUPPORTED

Constructor Summary

ServiceLocationException(short pErrorCode)
Ctor.
ServiceLocationException(short pErrorCode, String pMessage)
Ctor.
ServiceLocationException(short pErrorCode, String pMessage, Object pExtendedReason)
Ctor.
ServiceLocationException(short pErrorCode, String pMessage, pExtendedReason[] )
Ctor.
ServiceLocationException(short pErrorCode, Throwable pCause)
Ctor.

Method Summary

short
getErrorCode()
Return the error code.
Object[]
getExtendedReason()
Gets the extended reason for this exception.
String
getMessage()
Gets the message associated to this exception.
void
setExtendedReason(Object[] pExtendedReason)
Specifies the extended reason for this exception.
String
toString()

Field Details

AUTHENTICATION_ABSENT

public static final short AUTHENTICATION_ABSENT
Field Value:
6

AUTHENTICATION_FAILED

public static final short AUTHENTICATION_FAILED
Field Value:
7

AUTHENTICATION_UNKNOWN

public static final short AUTHENTICATION_UNKNOWN
Field Value:
5

BUFFER_OVERFLOW

public static final short BUFFER_OVERFLOW
Field Value:
22

DA_BUSY

public static final short DA_BUSY
Field Value:
11

INTERNAL_ERROR

public static final short INTERNAL_ERROR
Field Value:
10

INTERNAL_SYSTEM_ERROR

public static final short INTERNAL_SYSTEM_ERROR
Field Value:
20

INVALID_REGISTRATION

public static final short INVALID_REGISTRATION
Field Value:
3

INVALID_UPDATE

public static final short INVALID_UPDATE
Field Value:
13

LANGUAGE_NOT_SUPPORTED

public static final short LANGUAGE_NOT_SUPPORTED
Field Value:
1

NETWORK_ERROR

public static final short NETWORK_ERROR
Field Value:
19

NETWORK_INIT_FAILED

public static final short NETWORK_INIT_FAILED
Field Value:
17

NETWORK_TIMED_OUT

public static final short NETWORK_TIMED_OUT
Field Value:
18

NOT_IMPLEMENTED

public static final short NOT_IMPLEMENTED
Field Value:
16

OK

public static final short OK
Field Value:
0

OPTION_NOT_SUPPORTED

public static final short OPTION_NOT_SUPPORTED
Field Value:
12

PARSE_ERROR

public static final short PARSE_ERROR
Field Value:
2

PREVIOUS_RESPONDER_OVERFLOW

public static final short PREVIOUS_RESPONDER_OVERFLOW
Field Value:
100

REFRESH_REJECTED

public static final short REFRESH_REJECTED
Field Value:
15

REQUEST_NOT_SUPPORTED

public static final short REQUEST_NOT_SUPPORTED
Field Value:
14

SCOPE_NOT_SUPPORTED

public static final short SCOPE_NOT_SUPPORTED
Field Value:
4

TYPE_ERROR

public static final short TYPE_ERROR
Field Value:
21

VERSION_NOT_SUPPORTED

public static final short VERSION_NOT_SUPPORTED
Field Value:
9

Constructor Details

ServiceLocationException

public ServiceLocationException(short pErrorCode)
Ctor.
Parameters:
pErrorCode - One of the ec constants in this class

ServiceLocationException

public ServiceLocationException(short pErrorCode,
                                String pMessage)
Ctor.
Parameters:
pErrorCode - One of the ec constants in this class
pMessage - A more specific message

ServiceLocationException

public ServiceLocationException(short pErrorCode,
                                String pMessage,
                                Object pExtendedReason)
Ctor.
Parameters:
pErrorCode - One of the ec constants in this class
pMessage - A more specific message
pExtendedReason - Extended reason

ServiceLocationException

public ServiceLocationException(short pErrorCode,
                                String pMessage,
                                pExtendedReason[] )
Ctor.
Parameters:
pErrorCode - One of the ec constants in this class
pMessage - A more specific message

ServiceLocationException

public ServiceLocationException(short pErrorCode,
                                Throwable pCause)
Ctor.
Parameters:
pErrorCode - One of the ec constants in this class
pCause - The cause

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

getExtendedReason

public Object[] getExtendedReason()
Gets the extended reason for this exception.
Returns:
The extended reason

getMessage

public String getMessage()
Gets the message associated to this exception.
Returns:
The message

setExtendedReason

public void setExtendedReason(Object[] pExtendedReason)
Specifies the extended reason for this exception.
Parameters:
pExtendedReason -

toString

public String toString()

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