com.solers.slp
Class ServiceLocationException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.solers.slp.ServiceLocationException
All Implemented Interfaces:
Serializable

public class ServiceLocationException
extends Exception

Implementation of the ServiceLocationException class defined in RFC 2614. A ServiceLocationException is thrown by all methods when errors occur.

See Also:
Serialized Form

Field Summary
static short AUTHENTICATION_ABSENT
           
static short AUTHENTICATION_FAILED
           
static short BUFFER_OVERFLOW
           
private  short code
           
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 PARSE_ERROR
           
static short REFRESH_REJECTED
           
static short SCOPE_NOT_SUPPORTED
           
static short TYPE_ERROR
           
 
Fields inherited from class java.lang.Throwable
backtrace, detailMessage, serialVersionUID
 
Constructor Summary
ServiceLocationException(String why, short errorCode)
           
 
Method Summary
 short getErrorCode()
          Return the error code.
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, printStackTrace0
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

LANGUAGE_NOT_SUPPORTED

public static final short LANGUAGE_NOT_SUPPORTED

PARSE_ERROR

public static final short PARSE_ERROR

INVALID_REGISTRATION

public static final short INVALID_REGISTRATION

SCOPE_NOT_SUPPORTED

public static final short SCOPE_NOT_SUPPORTED

AUTHENTICATION_ABSENT

public static final short AUTHENTICATION_ABSENT

AUTHENTICATION_FAILED

public static final short AUTHENTICATION_FAILED

INVALID_UPDATE

public static final short INVALID_UPDATE

REFRESH_REJECTED

public static final short REFRESH_REJECTED

NOT_IMPLEMENTED

public static final short NOT_IMPLEMENTED

NETWORK_INIT_FAILED

public static final short NETWORK_INIT_FAILED

NETWORK_TIMED_OUT

public static final short NETWORK_TIMED_OUT

NETWORK_ERROR

public static final short NETWORK_ERROR

INTERNAL_SYSTEM_ERROR

public static final short INTERNAL_SYSTEM_ERROR

TYPE_ERROR

public static final short TYPE_ERROR

BUFFER_OVERFLOW

public static final short BUFFER_OVERFLOW

code

private short code
Constructor Detail

ServiceLocationException

public ServiceLocationException(String why,
                                short errorCode)
Method Detail

getErrorCode

public short getErrorCode()
Return the error code. The error code takes on one of the static field values.

toString

public String toString()
Overrides:
toString in class Throwable