com.sun.media.jsdt
Class JSDTException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.sun.media.jsdt.JSDTException
Direct Known Subclasses:
AlreadyBoundException, ClientNotGrabbingException, ClientNotReleasedException, ConnectionException, InvalidClientException, InvalidURLException, ManagerExistsException, NameInUseException, NoRegistryException, NoSuchByteArrayException, NoSuchChannelException, NoSuchClientException, NoSuchConsumerException, NoSuchHostException, NoSuchListenerException, NoSuchManagerException, NoSuchSessionException, NoSuchTokenException, NotBoundException, PermissionDeniedException, PortInUseException, RegistryExistsException, TimedOutException, UnknownException

public class JSDTException
extends java.lang.Exception
implements com.sun.media.jsdt.impl.JSDTDebugFlags, java.io.Serializable

JSDTException is the super class of all JSDT exceptions. It is provided as a means for catching all JSDT exceptions without having to catch them individually. It provides convenience methods to determine what type of exception has been thrown.

Since:
JSDT 1.0
Version:
1.5 - 7th January 1999
Author:
Rich Burridge
See Also:
Serialized Form

Field Summary
static int ALREADY_BOUND
          The already bound exception type.
static int CLIENT_NOT_GRABBING
          The Client not grabbing exception type.
static int CLIENT_NOT_RELEASED
          The Client not released exception type.
static int CONNECTION_ERROR
          The Connection error exception type.
static int INVALID_CLIENT
          The invalid Client exception type.
static int INVALID_URL
          The invalid URL exception type.
static int MANAGER_EXISTS
          The manager exists exception type.
static int NAME_IN_USE
          The name in use exception type.
static int NO_REGISTRY
          The no Registry exception type.
static int NO_SUCH_BYTEARRAY
          The no such ByteArray exception type.
static int NO_SUCH_CHANNEL
          The no such Channel exception type.
static int NO_SUCH_CLIENT
          The no such Client exception type.
static int NO_SUCH_CONSUMER
          The no such Consumer exception type.
static int NO_SUCH_HOST
          The no such Host exception type.
static int NO_SUCH_LISTENER
          The no such Listener exception type.
static int NO_SUCH_MANAGER
          The no such Manager exception type.
static int NO_SUCH_SESSION
          The no such Session exception type.
static int NO_SUCH_TOKEN
          The no such Token exception type.
static int NOT_BOUND
          The not bound exception type.
static int PERMISSION_DENIED
          The permission denied exception type.
static int PORT_IN_USE
          The port in use exception type.
static int REGISTRY_EXISTS
          The Registry exists exception type.
static int TIMED_OUT
          The timed out exception type.
static int UNKNOWN
          The unknown exception type.
 
Constructor Summary
JSDTException()
           thrown if there is any kind of error in processing a JSDT request.
JSDTException(int type)
           thrown if there is any kind of error in processing a JSDT request.
JSDTException(java.lang.String s)
           thrown if there is any kind of error in processing a JSDT request.
 
Method Summary
 int getType()
           the type of this JSDT exception.
 java.lang.String toString()
           converts this JSDT exception into a string describing it.
 java.lang.String typeToString(int type)
           typeToString converts an exception type into a String describing it.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOWN

public static final int UNKNOWN
The unknown exception type.

NO_SUCH_BYTEARRAY

public static final int NO_SUCH_BYTEARRAY
The no such ByteArray exception type.

NO_SUCH_CHANNEL

public static final int NO_SUCH_CHANNEL
The no such Channel exception type.

NO_SUCH_CLIENT

public static final int NO_SUCH_CLIENT
The no such Client exception type.

NO_SUCH_CONSUMER

public static final int NO_SUCH_CONSUMER
The no such Consumer exception type.

NO_SUCH_HOST

public static final int NO_SUCH_HOST
The no such Host exception type.

NO_SUCH_LISTENER

public static final int NO_SUCH_LISTENER
The no such Listener exception type.

NO_SUCH_SESSION

public static final int NO_SUCH_SESSION
The no such Session exception type.

NO_SUCH_TOKEN

public static final int NO_SUCH_TOKEN
The no such Token exception type.

MANAGER_EXISTS

public static final int MANAGER_EXISTS
The manager exists exception type.

PERMISSION_DENIED

public static final int PERMISSION_DENIED
The permission denied exception type.

CLIENT_NOT_GRABBING

public static final int CLIENT_NOT_GRABBING
The Client not grabbing exception type.

CLIENT_NOT_RELEASED

public static final int CLIENT_NOT_RELEASED
The Client not released exception type.

INVALID_URL

public static final int INVALID_URL
The invalid URL exception type.

NO_REGISTRY

public static final int NO_REGISTRY
The no Registry exception type.

ALREADY_BOUND

public static final int ALREADY_BOUND
The already bound exception type.

NOT_BOUND

public static final int NOT_BOUND
The not bound exception type.

NAME_IN_USE

public static final int NAME_IN_USE
The name in use exception type.

REGISTRY_EXISTS

public static final int REGISTRY_EXISTS
The Registry exists exception type.

CONNECTION_ERROR

public static final int CONNECTION_ERROR
The Connection error exception type.

PORT_IN_USE

public static final int PORT_IN_USE
The port in use exception type.

TIMED_OUT

public static final int TIMED_OUT
The timed out exception type.

NO_SUCH_MANAGER

public static final int NO_SUCH_MANAGER
The no such Manager exception type.

INVALID_CLIENT

public static final int INVALID_CLIENT
The invalid Client exception type.
Constructor Detail

JSDTException

public JSDTException()
thrown if there is any kind of error in processing a JSDT request.

JSDTException

public JSDTException(java.lang.String s)
thrown if there is any kind of error in processing a JSDT request.
Parameters:
s - a string describing the exception thrown.

JSDTException

public JSDTException(int type)
thrown if there is any kind of error in processing a JSDT request.
Parameters:
type - the type of this JSDT exception.
Method Detail

getType

public int getType()
the type of this JSDT exception.
Returns:
the type of this JSDT exception.

toString

public java.lang.String toString()
converts this JSDT exception into a string describing it.
Returns:
a String describing this JSDT exception.
Overrides:
toString in class java.lang.Throwable

typeToString

public java.lang.String typeToString(int type)
typeToString converts an exception type into a String describing it.
Parameters:
type - the exception type.
Returns:
a String describing this type of exception.