Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. All rights reserved.

JSR 216 (Maintenance Release)

Uses of Class
java.lang.Throwable

Packages that use Throwable
java.awt Contains all of the classes for creating user interfaces and for painting graphics and images. 
java.awt.datatransfer Provides interfaces and classes for transferring data between and within applications. 
java.awt.image Provides classes for creating and modifying images. 
java.beans Contains classes for run-time Java Beans support. 
java.io Provides for system input and output through data streams, serialization and the file system. 
java.lang Provides classes that are fundamental to the design of the Java programming language. 
java.lang.reflect Provides classes and interfaces for obtaining reflective information about classes and objects. 
java.net Provides the classes for implementing networking applications. 
java.rmi Provides the RMI package. 
java.security Provides the classes and interfaces for the security framework. 
java.security.acl The classes and interfaces in this package have been superseded by classes in the java.security package. 
java.security.cert Provides classes and interfaces for parsing and managing certificates, certificate revocation lists (CRLs), and certification paths. 
java.security.spec Provides classes and interfaces for key specifications and algorithm parameter specifications. 
java.text Provides classes and interfaces for handling text, dates, numbers, and messages in a manner independent of natural languages. 
java.util Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array). 
java.util.jar Provides classes for reading and writing the JAR (Java ARchive) file format, which is based on the standard ZIP file format with an optional manifest file. 
java.util.zip Provides classes for reading and writing the standard ZIP and GZIP file formats. 
javax.microedition.io Provides a simplified mechanism for applications to use various types of I/O protocols in resource-constrained environments. 
javax.microedition.xlet Provides interfaces used by applications and the application manager to communicate. 
javax.microedition.xlet.ixc Provides facilities for inter-Xlet communication (IXC). 
 

Uses of Throwable in java.awt
 

Subclasses of Throwable in java.awt
 class AWTError
          Thrown when a serious Abstract Window Toolkit error has occurred.
 class AWTException
          Signals that an Absract Window Toolkit exception has occurred.
 class HeadlessException
          Thrown when code that is dependent on a keyboard, display, or mouse is called in an environment that does not support a keyboard, display, or mouse.
 class IllegalComponentStateException
          Signals that an AWT component is not in an appropriate state for the requested operation.
 

Methods in java.awt that throw Throwable
protected  void Frame.finalize()
          We have to remove the (hard) reference to weakThis in the Vector, otherwise the WeakReference instance will never get garbage collected.
protected  void Cursor.finalize()
           
 

Uses of Throwable in java.awt.datatransfer
 

Subclasses of Throwable in java.awt.datatransfer
 class UnsupportedFlavorException
          Signals that the requested data is not supported in this flavor.
 

Uses of Throwable in java.awt.image
 

Subclasses of Throwable in java.awt.image
 class RasterFormatException
          The RasterFormatException is thrown if there is invalid layout information in a BufferedImage.
 

Uses of Throwable in java.beans
 

Subclasses of Throwable in java.beans
 class PropertyVetoException
          A PropertyVetoException is thrown when a proposed change to a property represents an unacceptable value.
 

Uses of Throwable in java.io
 

Subclasses of Throwable in java.io
 class CharConversionException
          Base class for character conversion exceptions.
 class EOFException
          Signals that an end of file or end of stream has been reached unexpectedly during input.
 class FileNotFoundException
          Signals that an attempt to open the file denoted by a specified pathname has failed.
 class InterruptedIOException
          Signals that an I/O operation has been interrupted.
 class InvalidClassException
          Thrown when the Serialization runtime detects one of the following problems with a Class.
 class InvalidObjectException
          Indicates that one or more deserialized objects failed validation tests.
 class IOException
          Signals that an I/O exception of some sort has occurred.
 class NotActiveException
          Thrown when serialization or deserialization is not active.
 class NotSerializableException
          Thrown when an instance is required to have a Serializable interface.
 class ObjectStreamException
          Superclass of all exceptions specific to Object Stream classes.
 class OptionalDataException
          Exception indicating the failure of an object read operation due to unread primitive data, or the end of data belonging to a serialized object in the stream.
 class StreamCorruptedException
          Thrown when control information that was read from an object stream violates internal consistency checks.
 class SyncFailedException
          Signals that a sync operation has failed.
 class UnsupportedEncodingException
          The Character Encoding is not supported.
 class UTFDataFormatException
          Signals that a malformed UTF-8 string has been read in a data input stream or by any class that implements the data input interface.
 class WriteAbortedException
          Signals that one of the ObjectStreamExceptions was thrown during a write operation.
 

Methods in java.io that return Throwable
 Throwable WriteAbortedException.getCause()
          Returns the exception that terminated the operation (the cause).
 

Uses of Throwable in java.lang
 

Subclasses of Throwable in java.lang
 class AbstractMethodError
          Thrown when an application tries to call an abstract method.
 class ArithmeticException
          Thrown when an exceptional arithmetic condition has occurred.
 class ArrayIndexOutOfBoundsException
          Thrown to indicate that an array has been accessed with an illegal index.
 class ArrayStoreException
          Thrown to indicate that an attempt has been made to store the wrong type of object into an array of objects.
 class AssertionError
          Thrown to indicate that an assertion has failed.
 class ClassCastException
          Thrown to indicate that the code has attempted to cast an object to a subclass of which it is not an instance.
 class ClassCircularityError
          Thrown when a circularity has been detected while initializing a class.
 class ClassFormatError
          Thrown when the Java Virtual Machine attempts to read a class file and determines that the file is malformed or otherwise cannot be interpreted as a class file.
 class ClassNotFoundException
          Thrown when an application tries to load in a class through its string name using: The forName method in class Class.
 class CloneNotSupportedException
          Thrown to indicate that the clone method in class Object has been called to clone an object, but that the object's class does not implement the Cloneable interface.
 class Error
          An Error is a subclass of Throwable that indicates serious problems that a reasonable application should not try to catch.
 class Exception
          The class Exception and its subclasses are a form of Throwable that indicates conditions that a reasonable application might want to catch.
 class ExceptionInInitializerError
          Signals that an unexpected exception has occurred in a static initializer.
 class IllegalAccessError
          Thrown if an application attempts to access or modify a field, or to call a method that it does not have access to.
 class IllegalAccessException
          An IllegalAccessException is thrown when an application tries to reflectively create an instance (other than an array), set or get a field, or invoke a method, but the currently executing method does not have access to the definition of the specified class, field, method or constructor.
 class IllegalArgumentException
          Thrown to indicate that a method has been passed an illegal or inappropriate argument.
 class IllegalMonitorStateException
          Thrown to indicate that a thread has attempted to wait on an object's monitor or to notify other threads waiting on an object's monitor without owning the specified monitor.
 class IllegalStateException
          Signals that a method has been invoked at an illegal or inappropriate time.
 class IllegalThreadStateException
          Thrown to indicate that a thread is not in an appropriate state for the requested operation.
 class IncompatibleClassChangeError
          Thrown when an incompatible class change has occurred to some class definition.
 class IndexOutOfBoundsException
          Thrown to indicate that an index of some sort (such as to an array, to a string, or to a vector) is out of range.
 class InstantiationError
          Thrown when an application tries to use the Java new construct to instantiate an abstract class or an interface.
 class InstantiationException
          Thrown when an application tries to create an instance of a class using the newInstance method in class Class, but the specified class object cannot be instantiated because it is an interface or is an abstract class.
 class InternalError
          Thrown to indicate some unexpected internal error has occurred in the Java Virtual Machine.
 class InterruptedException
          Thrown when a thread is waiting, sleeping, or otherwise paused for a long time and another thread interrupts it using the interrupt method in class Thread.
 class LinkageError
          Subclasses of LinkageError indicate that a class has some dependency on another class; however, the latter class has incompatibly changed after the compilation of the former class.
 class NegativeArraySizeException
          Thrown if an application tries to create an array with negative size.
 class NoClassDefFoundError
          Thrown if the Java Virtual Machine or a ClassLoader instance tries to load in the definition of a class (as part of a normal method call or as part of creating a new instance using the new expression) and no definition of the class could be found.
 class NoSuchFieldError
          Thrown if an application tries to access or modify a specified field of an object, and that object no longer has that field.
 class NoSuchFieldException
          Signals that the class doesn't have a field of a specified name.
 class NoSuchMethodError
          Thrown if an application tries to call a specified method of a class (either static or instance), and that class no longer has a definition of that method.
 class NoSuchMethodException
          Thrown when a particular method cannot be found.
 class NullPointerException
          Thrown when an application attempts to use null in a case where an object is required.
 class NumberFormatException
          Thrown to indicate that the application has attempted to convert a string to one of the numeric types, but that the string does not have the appropriate format.
 class OutOfMemoryError
          Thrown when the Java Virtual Machine cannot allocate an object because it is out of memory, and no more memory could be made available by the garbage collector.
 class RuntimeException
          RuntimeException is the superclass of those exceptions that can be thrown during the normal operation of the Java Virtual Machine.
 class SecurityException
          Thrown by the security manager to indicate a security violation.
 class StackOverflowError
          Thrown when a stack overflow occurs because an application recurses too deeply.
 class StringIndexOutOfBoundsException
          Thrown by String methods to indicate that an index is either negative or greater than the size of the string.
 class ThreadDeath
          An instance of ThreadDeath is thrown in the victim thread when the stop method with zero arguments in class Thread is called.
 class UnknownError
          Thrown when an unknown but serious exception has occurred in the Java Virtual Machine.
 class UnsatisfiedLinkError
          Thrown if the Java Virtual Machine cannot find an appropriate native-language definition of a method declared native.
 class UnsupportedClassVersionError
          Thrown when the Java Virtual Machine attempts to read a class file and determines that the major and minor version numbers in the file are not supported.
 class UnsupportedOperationException
          Thrown to indicate that the requested operation is not supported.
 class VerifyError
          Thrown when the "verifier" detects that a class file, though well formed, contains some sort of internal inconsistency or security problem.
 class VirtualMachineError
          Thrown to indicate that the Java Virtual Machine is broken or has run out of resources necessary for it to continue operating.
 

Methods in java.lang that return Throwable
 Throwable ClassNotFoundException.getException()
          Returns the exception that was raised if an error occurred while attempting to load the class.
 Throwable ClassNotFoundException.getCause()
          Returns the the cause of this exception (the exception that was raised if an error occurred while attempting to load the class; otherwise null).
 Throwable ExceptionInInitializerError.getException()
          Returns the exception that occurred during a static initialization that caused this error to be created.
 Throwable ExceptionInInitializerError.getCause()
          Returns the cause of this error (the exception that occurred during a static initialization that caused this error to be created).
 Throwable Throwable.getCause()
          Returns the cause of this throwable or null if the cause is nonexistent or unknown.
 Throwable Throwable.initCause(Throwable cause)
          Initializes the cause of this throwable to the specified value.
 Throwable Throwable.fillInStackTrace()
          Fills in the execution stack trace.
 

Methods in java.lang with parameters of type Throwable
 void ThreadGroup.uncaughtException(Thread t, Throwable e)
          Called by the Java Virtual Machine when a thread in this thread group stops because of an uncaught exception.
 Throwable Throwable.initCause(Throwable cause)
          Initializes the cause of this throwable to the specified value.
 

Methods in java.lang that throw Throwable
protected  void Object.finalize()
          Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
 

Constructors in java.lang with parameters of type Throwable
Error(String message, Throwable cause)
          Constructs a new error with the specified detail message and cause.
Error(Throwable cause)
          Constructs a new error with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).
ClassNotFoundException(String s, Throwable ex)
          Constructs a ClassNotFoundException with the specified detail message and optional exception that was raised while loading the class.
Exception(String message, Throwable cause)
          Constructs a new exception with the specified detail message and cause.
Exception(Throwable cause)
          Constructs a new exception with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).
ExceptionInInitializerError(Throwable thrown)
          Constructs a new ExceptionInInitializerError class by saving a reference to the Throwable object thrown for later retrieval by the ExceptionInInitializerError.getException() method.
RuntimeException(String message, Throwable cause)
          Constructs a new runtime exception with the specified detail message and cause.
RuntimeException(Throwable cause)
          Constructs a new runtime exception with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).
Throwable(String message, Throwable cause)
          Constructs a new throwable with the specified detail message and cause.
Throwable(Throwable cause)
          Constructs a new throwable with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).
 

Uses of Throwable in java.lang.reflect
 

Subclasses of Throwable in java.lang.reflect
 class InvocationTargetException
          InvocationTargetException is a checked exception that wraps an exception thrown by an invoked method or constructor.
 class UndeclaredThrowableException
          Thrown by a method invocation on a proxy instance if its invocation handler's invoke method throws a checked exception (a Throwable that is not assignable to RuntimeException or Error) that is not assignable to any of the exception types declared in the throws clause of the method that was invoked on the proxy instance and dispatched to the invocation handler.
 

Methods in java.lang.reflect that return Throwable
 Throwable UndeclaredThrowableException.getUndeclaredThrowable()
          Returns the Throwable instance wrapped in this UndeclaredThrowableException, which may be null.
 Throwable UndeclaredThrowableException.getCause()
          Returns the the cause of this exception (the Throwable instance wrapped in this UndeclaredThrowableException, which may be null).
 Throwable InvocationTargetException.getTargetException()
          Get the thrown target exception.
 Throwable InvocationTargetException.getCause()
          Returns the the cause of this exception (the thrown target exception, which may be null).
 

Methods in java.lang.reflect that throw Throwable
 Object InvocationHandler.invoke(Object proxy, Method method, Object[] args)
          Processes a method invocation on a proxy instance and returns the result.
 

Constructors in java.lang.reflect with parameters of type Throwable
UndeclaredThrowableException(Throwable undeclaredThrowable)
          Constructs an UndeclaredThrowableException with the specified Throwable.
UndeclaredThrowableException(Throwable undeclaredThrowable, String s)
          Constructs an UndeclaredThrowableException with the specified Throwable and a detail message.
InvocationTargetException(Throwable target)
          Constructs a InvocationTargetException with a target exception.
InvocationTargetException(Throwable target, String s)
          Constructs a InvocationTargetException with a target exception and a detail message.
 

Uses of Throwable in java.net
 

Subclasses of Throwable in java.net
 class BindException
          Signals that an error occurred while attempting to bind a socket to a local address and port.
 class ConnectException
          Signals that an error occurred while attempting to connect a socket to a remote address and port.
 class MalformedURLException
          Thrown to indicate that a malformed URL has occurred.
 class NoRouteToHostException
          Signals that an error occurred while attempting to connect a socket to a remote address and port.
 class PortUnreachableException
          Signals that an ICMP Port Unreachable message has been received on a connected datagram.
 class ProtocolException
          Thrown to indicate that there is an error in the underlying protocol, such as a TCP error.
 class SocketException
          Thrown to indicate that there is an error in the underlying protocol, such as a TCP error.
 class SocketTimeoutException
          Signals that a timeout has occurred on a socket read or accept.
 class UnknownHostException
          Thrown to indicate that the IP address of a host could not be determined.
 class UnknownServiceException
          Thrown to indicate that an unknown service exception has occurred.
 class URISyntaxException
          Checked exception thrown to indicate that a string could not be parsed as a URI reference.
 

Uses of Throwable in java.rmi
 

Subclasses of Throwable in java.rmi
 class AccessException
          An AccessException is thrown to indicate that the caller does not have permission to perform the action requested by the method call.
 class AlreadyBoundException
          An AlreadyBoundException is thrown if an attempt is made to bind an object in the registry to a name that already has an associated binding.
 class NotBoundException
          A NotBoundException is thrown if an attempt is made to lookup or unbind in the registry a name that has no associated binding.
 class RemoteException
          A RemoteException is the common superclass for a number of communication-related exceptions that may occur during the execution of a remote method call.
 class UnexpectedException
          An UnexpectedException is thrown if the client of a remote method call receives, as a result of the call, a checked exception that is not among the checked exception types declared in the throws clause of the method in the remote interface.
 

Fields in java.rmi declared as Throwable
 Throwable RemoteException.detail
          Nested Exception to hold wrapped remote exception.
 

Methods in java.rmi that return Throwable
 Throwable RemoteException.getCause()
          Returns the wrapped remote exception (the cause).
 

Constructors in java.rmi with parameters of type Throwable
RemoteException(String s, Throwable ex)
          Constructs a RemoteException with the specified detail message and nested exception.
 

Uses of Throwable in java.security
 

Subclasses of Throwable in java.security
 class AccessControlException
           This exception is thrown by the AccessController to indicate that a requested access (to a critical system resource such as the file system or the network) is denied.
 class DigestException
          This is the generic Message Digest exception.
 class GeneralSecurityException
          The GeneralSecurityException class is a generic security exception class that provides type safety for all the security-related exception classes that extend from it.
 class InvalidAlgorithmParameterException
          This is the exception for invalid or inappropriate algorithm parameters.
 class InvalidKeyException
          This is the exception for invalid Keys (invalid encoding, wrong length, uninitialized, etc).
 class InvalidParameterException
          This exception, designed for use by the JCA/JCE engine classes, is thrown when an invalid parameter is passed to a method.
 class KeyException
          This is the basic key exception.
 class KeyManagementException
          This is the general key management exception for all operations dealing with key management.
 class KeyStoreException
          This is the generic KeyStore exception.
 class NoSuchAlgorithmException
          This exception is thrown when a particular cryptographic algorithm is requested but is not available in the environment.
 class NoSuchProviderException
          This exception is thrown when a particular security provider is requested but is not available in the environment.
 class PrivilegedActionException
          This exception is thrown by doPrivileged(PrivilegedExceptionAction) and doPrivileged(PrivilegedExceptionAction, AccessControlContext context) to indicate that the action being performed threw a checked exception.
 class ProviderException
          A runtime exception for Provider exceptions (such as misconfiguration errors), which may be subclassed by Providers to throw specialized, provider-specific runtime errors.
 class SignatureException
          This is the generic Signature exception.
 class UnrecoverableKeyException
          This exception is thrown if a key in the keystore cannot be recovered.
 

Methods in java.security that return Throwable
 Throwable PrivilegedActionException.getCause()
          Returns the the cause of this exception (the exception thrown by the privileged computation that resulted in this PrivilegedActionException).
 

Uses of Throwable in java.security.acl
 

Subclasses of Throwable in java.security.acl
 class AclNotFoundException
          This is an exception that is thrown whenever a reference is made to a non-existent ACL (Access Control List).
 class LastOwnerException
          This is an exception that is thrown whenever an attempt is made to delete the last owner of an Access Control List.
 class NotOwnerException
          This is an exception that is thrown whenever the modification of an object (such as an Access Control List) is only allowed to be done by an owner of the object, but the Principal attempting the modification is not an owner.
 

Uses of Throwable in java.security.cert
 

Subclasses of Throwable in java.security.cert
 class CertificateEncodingException
          Certificate Encoding Exception.
 class CertificateException
          This exception indicates one of a variety of certificate problems.
 class CertificateExpiredException
          Certificate Expired Exception.
 class CertificateNotYetValidException
          Certificate is not yet valid exception.
 class CertificateParsingException
          Certificate Parsing Exception.
 class CRLException
          CRL (Certificate Revocation List) Exception.
 

Uses of Throwable in java.security.spec
 

Subclasses of Throwable in java.security.spec
 class InvalidKeySpecException
          This is the exception for invalid key specifications.
 class InvalidParameterSpecException
          This is the exception for invalid parameter specifications.
 

Uses of Throwable in java.text
 

Subclasses of Throwable in java.text
 class ParseException
          Signals that an error has been reached unexpectedly while parsing.
 

Uses of Throwable in java.util
 

Subclasses of Throwable in java.util
 class ConcurrentModificationException
          This exception may be thrown by methods that have detected concurrent modification of an object when such modification is not permissible.
 class EmptyStackException
          Thrown by methods in the Stack class to indicate that the stack is empty.
 class MissingResourceException
          Signals that a resource is missing.
 class NoSuchElementException
          Thrown by the nextElement method of an Enumeration to indicate that there are no more elements in the enumeration.
 class TooManyListenersException
           The TooManyListenersException Exception is used as part of the Java Event model to annotate and implement a unicast special case of a multicast Event Source.
 

Uses of Throwable in java.util.jar
 

Subclasses of Throwable in java.util.jar
 class JarException
          Signals that an error of some sort has occurred while reading from or writing to a JAR file.
 

Uses of Throwable in java.util.zip
 

Subclasses of Throwable in java.util.zip
 class DataFormatException
          Signals that a data format error has occurred.
 class ZipException
          Signals that a Zip exception of some sort has occurred.
 

Uses of Throwable in javax.microedition.io
 

Subclasses of Throwable in javax.microedition.io
 class ConnectionNotFoundException
          This class is used to signal that a connection target cannot be found, or the protocol type is not supported.
 

Uses of Throwable in javax.microedition.xlet
 

Subclasses of Throwable in javax.microedition.xlet
 class UnavailableContainerException
          Signals that no Container can be provided for the Xlet to use at this time.
 class XletStateChangeException
          Signals that a requested Xlet state change failed.
 

Uses of Throwable in javax.microedition.xlet.ixc
 

Subclasses of Throwable in javax.microedition.xlet.ixc
 class StubException
          StubException is thrown whenever stub class generation fails for inter-Xlet communication.
 

Constructors in javax.microedition.xlet.ixc with parameters of type Throwable
StubException(String s, Throwable ex)
          Constructs a StubException with the specified detail message and nested exception.
 


JSR 216 (Maintenance Release)

Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 216 specification.