JSR-62 (Final)

Uses of Class
java.lang.Exception

Packages that use Exception
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.event Provides interfaces and classes for dealing with different types of events fired by AWT components. 
java.awt.image Provides classes for creating and modifying images. 
java.beans Contains classes for run-time Java Beans support. 
java.io   
java.lang   
java.lang.reflect   
java.net   
java.rmi Provides the RMI package. 
java.security   
java.security.acl   
java.security.cert   
java.security.spec   
java.text   
java.util   
java.util.jar   
java.util.zip   
javax.microedition.io The classes for the generic connections. 
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 Exception in java.awt
 

Subclasses of Exception in java.awt
 class AWTException
          Signals that an Absract Window Toolkit exception has occurred.
 class IllegalComponentStateException
          Signals that an AWT component is not in an appropriate state for the requested operation.
 

Uses of Exception in java.awt.datatransfer
 

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

Uses of Exception in java.awt.event
 

Methods in java.awt.event that return Exception
 Exception InvocationEvent.getException()
          Returns any Exception caught while executing the Runnable's run() method.
 

Uses of Exception in java.awt.image
 

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

Uses of Exception in java.beans
 

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

Uses of Exception in java.io
 

Subclasses of Exception 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
          Unexpected data appeared in an ObjectInputStream trying to read an Object.
 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.
 

Fields in java.io declared as Exception
 Exception WriteAbortedException.detail
          Exception that was caught while writing the ObjectStream.
 

Constructors in java.io with parameters of type Exception
WriteAbortedException(String s, Exception ex)
          Thrown during a read operation when one of the ObjectStreamExceptions was thrown during a write operation.
 

Uses of Exception in java.lang
 

Subclasses of Exception in java.lang
 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 ClassCastException
          Thrown to indicate that the code has attempted to cast an object to a subclass of which it is not an instance.
 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 IllegalAccessException
          Thrown when an application tries to load in a class, but the currently executing method does not have access to the definition of the specified class, because the class is not public and in another package.
 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 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 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 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 NegativeArraySizeException
          Thrown if an application tries to create an array with negative size.
 class NoSuchFieldException
          Signals that the class doesn't have a field of a specified name.
 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 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 StringIndexOutOfBoundsException
          Thrown by the charAt method in class String and by other String methods to indicate that an index is either negative or greater than or equal to the size of the string.
 class UnsupportedOperationException
          Thrown to indicate that the requested operation is not supported.
 

Uses of Exception in java.lang.reflect
 

Subclasses of Exception 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.
 

Uses of Exception in java.net
 

Subclasses of Exception 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 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 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.
 

Uses of Exception in java.rmi
 

Subclasses of Exception 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.
 

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

Uses of Exception in java.security
 

Subclasses of Exception 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
          This is the general security exception class, which serves to group all the exception classes of the java.security package 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 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 Exception
 Exception PrivilegedActionException.getException()
          Returns the exception thrown by the privileged computation that resulted in this PrivilegedActionException.
 

Methods in java.security that throw Exception
 Object PrivilegedExceptionAction.run()
          Performs the computation.
 

Constructors in java.security with parameters of type Exception
PrivilegedActionException(Exception exception)
          Constructs a new PrivilegedActionException "wrapping" the specific Exception.
 

Uses of Exception in java.security.acl
 

Subclasses of Exception 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 Exception in java.security.cert
 

Subclasses of Exception 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 Exception in java.security.spec
 

Subclasses of Exception 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 Exception in java.text
 

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

Uses of Exception in java.util
 

Subclasses of Exception in java.util
 class ConcurrentModificationException
          This exception may be thrown by methods that have detected concurrent modification of a backing 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 Exception in java.util.jar
 

Subclasses of Exception 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 Exception in java.util.zip
 

Subclasses of Exception 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 Exception in javax.microedition.io
 

Subclasses of Exception in javax.microedition.io
 class ConnectionNotFoundException
          This class is used to signal that a connection target cannot be found
 

Uses of Exception in javax.microedition.xlet
 

Subclasses of Exception 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 Exception in javax.microedition.xlet.ixc
 

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


JSR-62 (Final)

Java and Java 2D are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
Copyright 1993 - 2002 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, California 94303, U.S.A. All Rights Reserved.
Use of this specification is subject to this license.