|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.livetribe.slp.ServiceLocationException
public class ServiceLocationException
Thrown when something goes wrong in Service Location Protocol operations.
Details about what happened are provided by a error code
.
Field Summary | |
---|---|
static int |
AUTHENTICATION_ABSENT
Error code indicating that an authentication was expected, but not received. |
static int |
AUTHENTICATION_FAILED
Error code indicating that the authentication failed. |
static int |
AUTHENTICATION_UNKNOWN
Error code indicating that an authentication has been requested, but the DirectoryAgent or ServiceAgent does not support it. |
static int |
BUFFER_OVERFLOW
Error code indicating that an outgoing request exceeded the max transmission unit. |
static int |
BUSY_NOW
Error code indicating that the server is busy and that the client should retry. |
static int |
INTERNAL_ERROR
Error code indicating that the ServiceAgent or DirectoryAgent cannot respond. |
static int |
INTERNAL_SYSTEM_ERROR
Error code indicating that an internal, non-recoverable, error happened. |
static int |
INVALID_REGISTRATION
Error code indicating that a service registration failed because of invalid arguments. |
static int |
INVALID_UPDATE
Error code indicating that a service update failed because of invalid arguments. |
static int |
LANGUAGE_NOT_SUPPORTED
Error code indicating that DirectoryAgents or ServiceAgents have information in other languages other than the one requested. |
static int |
MESSAGE_NOT_SUPPORTED
Error code indicating that the SLP implementation does not support a message. |
static int |
NETWORK_ERROR
Error code indicating that a generic network failure happened. |
static int |
NETWORK_INIT_FAILED
Error code indicating that the network initialization failed. |
static int |
NETWORK_TIMED_OUT
Error code indicating that a unicast request timed out. |
static int |
NOT_IMPLEMENTED
Error code indicating that the API exists, but it's not implemented. |
static int |
OPTION_NOT_UNDERSTOOD
Error code indicating that a mandatory extension is not understood by the implementation. |
static int |
PARSE_ERROR
Error code indicating that a parse error has occurred while parsing attributes string, filter expressions or SLP messages. |
static int |
REFRESH_REJECTED
Error code indicating that a ServiceAgent sent re-registrations to a DirectoryAgent more frequently than allowed. |
static int |
SCOPE_NOT_SUPPORTED
Error code indicating that the DirectoryAgent or ServiceAgent does not support the scope of the requested operation. |
static int |
TYPE_ERROR
Error code indicating that attributes specified during registration do no match those present in the service template. |
static int |
VERSION_NOT_SUPPORTED
Error code indicating that the SLP version is not supported. |
Constructor Summary | |
---|---|
ServiceLocationException(int errorCode)
|
|
ServiceLocationException(String message,
int errorCode)
|
|
ServiceLocationException(String message,
Throwable cause,
int errorCode)
|
|
ServiceLocationException(Throwable cause,
int errorCode)
|
Method Summary | |
---|---|
int |
getErrorCode()
Returns the error code that specifies the problem that caused this exception. |
String |
toString()
|
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int LANGUAGE_NOT_SUPPORTED
public static final int PARSE_ERROR
public static final int INVALID_REGISTRATION
public static final int SCOPE_NOT_SUPPORTED
public static final int AUTHENTICATION_UNKNOWN
public static final int AUTHENTICATION_ABSENT
public static final int AUTHENTICATION_FAILED
public static final int VERSION_NOT_SUPPORTED
public static final int INTERNAL_ERROR
public static final int BUSY_NOW
public static final int OPTION_NOT_UNDERSTOOD
public static final int INVALID_UPDATE
public static final int MESSAGE_NOT_SUPPORTED
public static final int REFRESH_REJECTED
public static final int NOT_IMPLEMENTED
public static final int NETWORK_INIT_FAILED
public static final int NETWORK_TIMED_OUT
public static final int NETWORK_ERROR
public static final int INTERNAL_SYSTEM_ERROR
public static final int TYPE_ERROR
public static final int BUFFER_OVERFLOW
Constructor Detail |
---|
public ServiceLocationException(int errorCode)
public ServiceLocationException(String message, int errorCode)
public ServiceLocationException(Throwable cause, int errorCode)
public ServiceLocationException(String message, Throwable cause, int errorCode)
Method Detail |
---|
public int getErrorCode()
public String toString()
toString
in class Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |