List of exceptions in Java 8

Tags: ,

Let's say you are writing a Java-program, and now is the time to throw an exception. Of what type should it be? Does the broad Exception class suit our needs, or it's better to use a problem-specific exception? If the latter is the case, should we write our own exception or take one from the standard Java-library?

This list of all built-in Java exceptions has been created to help you find a proper exception for your program (according to JDK 8).

Pick a package and see if there is an exception you can use:

java.awt java.lang.reflect java.security.spec
java.awt.color java.net java.sql
java.awt.datatransfer java.nio java.text
java.awt.dnd java.nio.channels java.time
java.awt.geom java.nio.charset java.time.format
java.awt.image java.nio.file java.time.temporal
java.awt.print java.nio.file.attribute java.time.zone
java.beans java.rmi java.util
java.io java.rmi.activation java.util.concurrent
java.lang java.rmi.server java.util.jar
java.lang.annotation java.security java.util.prefs
java.lang.instrument java.security.acl java.util.regex
java.lang.invoke java.security.cert java.util.zip

java.awt

AWTException
Signals that an Abstract Window Toolkit exception has occurred.
FontFormatException
Thrown by method createFont in the Font class to indicate that the specified font is bad.
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.
IllegalComponentStateException
Signals that an AWT component is not in an appropriate state for the requested operation.

java.awt.color

CMMException
This exception is thrown if the native CMM returns an error.
ProfileDataException
This exception is thrown when an error occurs in accessing or processing an ICC_Profile object.

java.awt.datatransfer

MimeTypeParseException
A class to encapsulate MimeType parsing related exceptions
UnsupportedFlavorException
Signals that the requested data is not supported in this flavor.

java.awt.dnd

InvalidDnDOperationException
This exception is thrown by various methods in the java.awt.dnd package.

java.awt.geom

IllegalPathStateException
The IllegalPathStateException represents an exception that is thrown if an operation is performed on a path that is in an illegal state with respect to the particular operation being performed, such as appending a path segment to a GeneralPath without an initial moveto.
NoninvertibleTransformException
The NoninvertibleTransformException class represents an exception that is thrown if an operation is performed requiring the inverse of an AffineTransform object but the AffineTransform is in a non-invertible state.

java.awt.image

ImagingOpException
The ImagingOpException is thrown if one of the BufferedImageOp or RasterOp filter methods cannot process the image.
RasterFormatException
The RasterFormatException is thrown if there is invalid layout information in the Raster.

java.awt.print

PrinterAbortException
The PrinterAbortException class is a subclass of PrinterException and is used to indicate that a user or application has terminated the print job while it was in the process of printing.
PrinterException
The PrinterException class and its subclasses are used to indicate that an exceptional condition has occurred in the print system.
PrinterIOException
The PrinterIOException class is a subclass of PrinterException and is used to indicate that an IO error of some sort has occurred while printing.

java.beans

IntrospectionException
Thrown when an exception happens during Introspection.
PropertyVetoException
A PropertyVetoException is thrown when a proposed change to a property represents an unacceptable value.

java.io

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

java.lang

ArithmeticException
Thrown when an exceptional arithmetic condition has occurred.
ArrayIndexOutOfBoundsException
Thrown to indicate that an array has been accessed with an illegal index.
ArrayStoreException
Thrown to indicate that an attempt has been made to store the wrong type of object into an array of objects.
ClassCastException
Thrown to indicate that the code has attempted to cast an object to a subclass of which it is not an instance.
ClassNotFoundException
Thrown when an application tries to load in a class through its string name using: The forName method in 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.
EnumConstantNotPresentException
Thrown when an application tries to access an enum constant by name and the enum type contains no constant with the specified name.
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.
IllegalArgumentException
Thrown to indicate that a method has been passed an illegal or inappropriate argument.
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.
IllegalStateException
Signals that a method has been invoked at an illegal or inappropriate time.
IllegalThreadStateException
Thrown to indicate that a thread is not in an appropriate state for the requested operation.
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.
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.
InterruptedException
Thrown when a thread is waiting, sleeping, or otherwise occupied, and the thread is interrupted, either before or during the activity.
NegativeArraySizeException
Thrown if an application tries to create an array with negative size.
NoSuchFieldException
Signals that the class doesn't have a field of a specified name.
NoSuchMethodException
Thrown when a particular method cannot be found.
NullPointerException
Thrown when an application attempts to use null in a case where an object is required.
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.
ReflectiveOperationException
Common superclass of exceptions thrown by reflective operations in core reflection.
RuntimeException
RuntimeException is the superclass of those exceptions that can be thrown during the normal operation of the Java Virtual Machine.
SecurityException
Thrown by the security manager to indicate a security violation.
StringIndexOutOfBoundsException
Thrown by String methods to indicate that an index is either negative or greater than the size of the string.
Throwable
The Throwable class is the superclass of all errors and exceptions in the Java language.
TypeNotPresentException
Thrown when an application tries to access a type using a string representing the type's name, but no definition for the type with the specified name can be found.
UnsupportedOperationException
Thrown to indicate that the requested operation is not supported.

java.lang.annotation

AnnotationTypeMismatchException
Thrown to indicate that a program has attempted to access an element of an annotation whose type has changed after the annotation was compiled (or serialized).
IncompleteAnnotationException
Thrown to indicate that a program has attempted to access an element of an annotation type that was added to the annotation type definition after the annotation was compiled (or serialized).

java.lang.instrument

IllegalClassFormatException
Thrown by an implementation of ClassFileTransformer.transform when its input parameters are invalid.
UnmodifiableClassException
Thrown by an implementation of Instrumentation.redefineClasses when one of the specified classes cannot be modified.

java.lang.invoke

LambdaConversionException
WrongMethodTypeException
Thrown to indicate that code has attempted to call a method handle via the wrong method type.

java.lang.reflect

InvocationTargetException
InvocationTargetException is a checked exception that wraps an exception thrown by an invoked method or constructor.
MalformedParameterizedTypeException
Thrown when a semantically malformed parameterized type is encountered by a reflective method that needs to instantiate it.
MalformedParametersException
Thrown when java.lang.reflect attempts to read method parameters from a class file and determines that one or more parameters are malformed.
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.

java.net

BindException
Signals that an error occurred while attempting to bind a socket to a local address and port.
ConnectException
Signals that an error occurred while attempting to connect a socket to a remote address and port.
HttpRetryException
Thrown to indicate that a HTTP request needs to be retried but cannot be retried automatically, due to streaming mode being enabled.
MalformedURLException
Thrown to indicate that a malformed URL has occurred.
NoRouteToHostException
Signals that an error occurred while attempting to connect a socket to a remote address and port.
PortUnreachableException
Signals that an ICMP Port Unreachable message has been received on a connected datagram.
ProtocolException
Thrown to indicate that there is an error in the underlying protocol, such as a TCP error.
SocketException
Thrown to indicate that there is an error creating or accessing a Socket.
SocketTimeoutException
Signals that a timeout has occurred on a socket read or accept.
UnknownHostException
Thrown to indicate that the IP address of a host could not be determined.
UnknownServiceException
Thrown to indicate that an unknown service exception has occurred.
URISyntaxException
Checked exception thrown to indicate that a string could not be parsed as a URI reference.

java.nio

BufferOverflowException
Unchecked exception thrown when a relative put operation reaches the target buffer's limit.
BufferUnderflowException
Unchecked exception thrown when a relative get operation reaches the source buffer's limit.
InvalidMarkException
Unchecked exception thrown when an attempt is made to reset a buffer when its mark is not defined.
ReadOnlyBufferException
Unchecked exception thrown when a content-mutation method such as put or compact is invoked upon a read-only buffer.

java.nio.channels

AcceptPendingException
Unchecked exception thrown when an attempt is made to initiate an accept operation on a channel and a previous accept operation has not completed.
AlreadyBoundException
Unchecked exception thrown when an attempt is made to bind the socket a network oriented channel that is already bound.
AlreadyConnectedException
Unchecked exception thrown when an attempt is made to connect a SocketChannel that is already connected.
AsynchronousCloseException
Checked exception received by a thread when another thread closes the channel or the part of the channel upon which it is blocked in an I/O operation.
CancelledKeyException
Unchecked exception thrown when an attempt is made to use a selection key that is no longer valid.
ClosedByInterruptException
Checked exception received by a thread when another thread interrupts it while it is blocked in an I/O operation upon a channel.
ClosedChannelException
Checked exception thrown when an attempt is made to invoke or complete an I/O operation upon channel that is closed, or at least closed to that operation.
ClosedSelectorException
Unchecked exception thrown when an attempt is made to invoke an I/O operation upon a closed selector.
ConnectionPendingException
Unchecked exception thrown when an attempt is made to connect a SocketChannel for which a non-blocking connection operation is already in progress.
FileLockInterruptionException
Checked exception received by a thread when another thread interrupts it while it is waiting to acquire a file lock.
IllegalBlockingModeException
Unchecked exception thrown when a blocking-mode-specific operation is invoked upon a channel in the incorrect blocking mode.
IllegalChannelGroupException
Unchecked exception thrown when an attempt is made to open a channel in a group that was not created by the same provider.
IllegalSelectorException
Unchecked exception thrown when an attempt is made to register a channel with a selector that was not created by the provider that created the channel.
InterruptedByTimeoutException
Checked exception received by a thread when a timeout elapses before an asynchronous operation completes.
NoConnectionPendingException
Unchecked exception thrown when the finishConnect method of a SocketChannel is invoked without first successfully invoking its connect method.
NonReadableChannelException
Unchecked exception thrown when an attempt is made to read from a channel that was not originally opened for reading.
NonWritableChannelException
Unchecked exception thrown when an attempt is made to write to a channel that was not originally opened for writing.
NotYetBoundException
Unchecked exception thrown when an attempt is made to invoke an I/O operation upon a server socket channel that is not yet bound.
NotYetConnectedException
Unchecked exception thrown when an attempt is made to invoke an I/O operation upon a socket channel that is not yet connected.
OverlappingFileLockException
Unchecked exception thrown when an attempt is made to acquire a lock on a region of a file that overlaps a region already locked by the same Java virtual machine, or when another thread is already waiting to lock an overlapping region of the same file.
ReadPendingException
Unchecked exception thrown when an attempt is made to read from an asynchronous socket channel and a previous read has not completed.
ShutdownChannelGroupException
Unchecked exception thrown when an attempt is made to construct a channel in a group that is shutdown or the completion handler for an I/O operation cannot be invoked because the channel group has terminated.
UnresolvedAddressException
Unchecked exception thrown when an attempt is made to invoke a network operation upon an unresolved socket address.
UnsupportedAddressTypeException
Unchecked exception thrown when an attempt is made to bind or connect to a socket address of a type that is not supported.
WritePendingException
Unchecked exception thrown when an attempt is made to write to an asynchronous socket channel and a previous write has not completed.

java.nio.charset

CharacterCodingException
Checked exception thrown when a character encoding or decoding error occurs.
IllegalCharsetNameException
Unchecked exception thrown when a string that is not a legal charset name is used as such.
MalformedInputException
Checked exception thrown when an input byte sequence is not legal for given charset, or an input character sequence is not a legal sixteen-bit Unicode sequence.
UnmappableCharacterException
Checked exception thrown when an input character (or byte) sequence is valid but cannot be mapped to an output byte (or character) sequence.
UnsupportedCharsetException
Unchecked exception thrown when no support is available for a requested charset.

java.nio.file

AccessDeniedException
Checked exception thrown when a file system operation is denied, typically due to a file permission or other access check.
AtomicMoveNotSupportedException
Checked exception thrown when a file cannot be moved as an atomic file system operation.
ClosedDirectoryStreamException
Unchecked exception thrown when an attempt is made to invoke an operation on a directory stream that is closed.
ClosedFileSystemException
Unchecked exception thrown when an attempt is made to invoke an operation on a file and the file system is closed.
ClosedWatchServiceException
Unchecked exception thrown when an attempt is made to invoke an operation on a watch service that is closed.
DirectoryIteratorException
Runtime exception thrown if an I/O error is encountered when iterating over the entries in a directory.
DirectoryNotEmptyException
Checked exception thrown when a file system operation fails because a directory is not empty.
FileAlreadyExistsException
Checked exception thrown when an attempt is made to create a file or directory and a file of that name already exists.
FileSystemAlreadyExistsException
Runtime exception thrown when an attempt is made to create a file system that already exists.
FileSystemException
Thrown when a file system operation fails on one or two files.
FileSystemLoopException
Checked exception thrown when a file system loop, or cycle, is encountered.
FileSystemNotFoundException
Runtime exception thrown when a file system cannot be found.
InvalidPathException
Unchecked exception thrown when path string cannot be converted into a Path because the path string contains invalid characters, or the path string is invalid for other file system specific reasons.
NoSuchFileException
Checked exception thrown when an attempt is made to access a file that does not exist.
NotDirectoryException
Checked exception thrown when a file system operation, intended for a directory, fails because the file is not a directory.
NotLinkException
Checked exception thrown when a file system operation fails because a file is not a symbolic link.
ProviderMismatchException
Unchecked exception thrown when an attempt is made to invoke a method on an object created by one file system provider with a parameter created by a different file system provider.
ProviderNotFoundException
Runtime exception thrown when a provider of the required type cannot be found.
ReadOnlyFileSystemException
Unchecked exception thrown when an attempt is made to update an object associated with a read-only FileSystem.

java.nio.file.attribute

UserPrincipalNotFoundException
Checked exception thrown when a lookup of UserPrincipal fails because the principal does not exist.

java.rmi

AccessException
An AccessException is thrown by certain methods of the java.rmi.Naming class (specifically bind, rebind, and unbind) and methods of the java.rmi.activation.ActivationSystem interface to indicate that the caller does not have permission to perform the action requested by the method call.
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.
ConnectException
A ConnectException is thrown if a connection is refused to the remote host for a remote method call.
ConnectIOException
A ConnectIOException is thrown if an IOException occurs while making a connection to the remote host for a remote method call.
MarshalException
A MarshalException is thrown if a java.io.IOException occurs while marshalling the remote call header, arguments or return value for a remote method call.
NoSuchObjectException
A NoSuchObjectException is thrown if an attempt is made to invoke a method on an object that no longer exists in the remote virtual machine.
NotBoundException
A NotBoundException is thrown if an attempt is made to lookup or unbind in the registry a name that has no associated binding.
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.
RMISecurityException
An RMISecurityException signals that a security exception has occurred during the execution of one of java.rmi.RMISecurityManager's methods.
ServerError
A ServerError is thrown as a result of a remote method invocation when an Error is thrown while processing the invocation on the server, either while unmarshalling the arguments, executing the remote method itself, or marshalling the return value.
ServerException
A ServerException is thrown as a result of a remote method invocation when a RemoteException is thrown while processing the invocation on the server, either while unmarshalling the arguments or executing the remote method itself.
ServerRuntimeException
From a server executing on JDK 1.1, a ServerRuntimeException is thrown as a result of a remote method invocation when a RuntimeException is thrown while processing the invocation on the server, either while unmarshalling the arguments, executing the remote method itself, or marshalling the return value.
StubNotFoundException
A StubNotFoundException is thrown if a valid stub class could not be found for a remote object when it is exported.
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.
UnknownHostException
An UnknownHostException is thrown if a java.net.UnknownHostException occurs while creating a connection to the remote host for a remote method call.
UnmarshalException
An UnmarshalException can be thrown while unmarshalling the parameters or results of a remote method call if any of the following conditions occur...

java.rmi.activation

ActivateFailedException
This exception is thrown by the RMI runtime when activation fails during a remote call to an activatable object.
ActivationException
General exception used by the activation interfaces.
UnknownGroupException
An UnknownGroupException is thrown by methods of classes and interfaces in the java.rmi.activation package when the ActivationGroupID parameter to the method is determined to be invalid, i.e., not known by the ActivationSystem.
UnknownObjectException
An UnknownObjectException is thrown by methods of classes and interfaces in the java.rmi.activation package when the ActivationID parameter to the method is determined to be invalid.

java.rmi.server

ExportException
An ExportException is a RemoteException thrown if an attempt to export a remote object fails.
ServerCloneException
A ServerCloneException is thrown if a remote exception occurs during the cloning of a UnicastRemoteObject.
ServerNotActiveException
A ServerNotActiveException is an Exception thrown during a call to RemoteServer.getClientHost if the getClientHost method is called outside of servicing a remote method call.
SkeletonMismatchException
This exception is thrown when a call is received that does not match the available skeleton.
SkeletonNotFoundException
A SkeletonNotFoundException is thrown if the Skeleton corresponding to the remote object being exported is not found.
SocketSecurityException
An obsolete subclass of ExportException.

java.security

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.
DigestException
This is the generic Message Digest exception.
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.
InvalidAlgorithmParameterException
This is the exception for invalid or inappropriate algorithm parameters.
InvalidKeyException
This is the exception for invalid Keys (invalid encoding, wrong length, uninitialized, etc).
InvalidParameterException
This exception, designed for use by the JCA/JCE engine classes, is thrown when an invalid parameter is passed to a method.
KeyException
This is the basic key exception.
KeyManagementException
This is the general key management exception for all operations dealing with key management.
KeyStoreException
This is the generic KeyStore exception.
NoSuchAlgorithmException
This exception is thrown when a particular cryptographic algorithm is requested but is not available in the environment.
NoSuchProviderException
This exception is thrown when a particular security provider is requested but is not available in the environment.
PrivilegedActionException
This exception is thrown by doPrivileged(PrivilegedExceptionAction) and doPrivileged(PrivilegedExceptionAction,AccessControlContext) to indicate that the action being performed threw a checked exception.
ProviderException
A runtime exception for Provider exceptions (such as misconfiguration errors or unrecoverable internal errors), which may be subclassed by Providers to throw specialized, provider-specific runtime errors.
SignatureException
This is the generic Signature exception.
UnrecoverableEntryException
This exception is thrown if an entry in the keystore cannot be recovered.
UnrecoverableKeyException
This exception is thrown if a key in the keystore cannot be recovered.

java.security.acl

AclNotFoundException
This is an exception that is thrown whenever a reference is made to a non-existent ACL (Access Control List).
LastOwnerException
This is an exception that is thrown whenever an attempt is made to delete the last owner of an Access Control List.
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.

java.security.cert

CertificateEncodingException
Certificate Encoding Exception.
CertificateException
This exception indicates one of a variety of certificate problems.
CertificateExpiredException
Certificate Expired Exception.
CertificateNotYetValidException
Certificate is not yet valid exception.
CertificateParsingException
Certificate Parsing Exception.
CertificateRevokedException
An exception that indicates an X.509 certificate is revoked.
CertPathBuilderException
An exception indicating one of a variety of problems encountered when building a certification path with a CertPathBuilder.
CertPathValidatorException
An exception indicating one of a variety of problems encountered when validating a certification path.
CertStoreException
An exception indicating one of a variety of problems retrieving certificates and CRLs from a CertStore.
CRLException
CRL (Certificate Revocation List) Exception.

java.security.spec

InvalidKeySpecException
This is the exception for invalid key specifications.
InvalidParameterSpecException
This is the exception for invalid parameter specifications.

java.sql

BatchUpdateException
The subclass of SQLException thrown when an error occurs during a batch update operation.
SQLClientInfoException
The subclass of SQLException is thrown when one or more client info properties could not be set on a Connection.
SQLDataException
The subclass of SQLException thrown when the SQLState class value is '22', or under vendor-specified conditions.
SQLFeatureNotSupportedException
The subclass of SQLException thrown when the SQLState class value is '0A' ( the value is 'zero' A).
SQLIntegrityConstraintViolationException
The subclass of SQLException thrown when the SQLState class value is '23', or under vendor-specified conditions.
SQLInvalidAuthorizationSpecException
The subclass of SQLException thrown when the SQLState class value is '28', or under vendor-specified conditions.
SQLNonTransientConnectionException
The subclass of SQLException thrown for the SQLState class value '08', or under vendor-specified conditions.
SQLNonTransientException
The subclass of SQLException thrown when an instance where a retry of the same operation would fail unless the cause of the SQLException is corrected.
SQLRecoverableException
The subclass of SQLException thrown in situations where a previously failed operation might be able to succeed if the application performs some recovery steps and retries the entire transaction or in the case of a distributed transaction, the transaction branch.
SQLSyntaxErrorException
The subclass of SQLException thrown when the SQLState class value is '42', or under vendor-specified conditions.
SQLTimeoutException
The subclass of SQLException thrown when the timeout specified by Statement.setQueryTimeout, DriverManager.setLoginTimeout, DataSource.setLoginTimeout, XADataSource.setLoginTimeout has expired.
SQLTransactionRollbackException
The subclass of SQLException thrown when the SQLState class value is '40', or under vendor-specified conditions.
SQLTransientConnectionException
The subclass of SQLException for the SQLState class value '08', or under vendor-specified conditions.
SQLTransientException
The subclass of SQLException is thrown in situations where a previously failed operation might be able to succeed when the operation is retried without any intervention by application-level functionality.
SQLWarning
An exception that provides information on database access warnings.

java.text

ParseException
Signals that an error has been reached unexpectedly while parsing.

java.time

DateTimeException
Exception used to indicate a problem while calculating a date-time.

java.time.format

DateTimeParseException
An exception thrown when an error occurs during parsing.

java.time.temporal

UnsupportedTemporalTypeException
UnsupportedTemporalTypeException indicates that a ChronoField or ChronoUnit is not supported for a Temporal class.

java.time.zone

ZoneRulesException
Thrown to indicate a problem with time-zone configuration.

java.util

ConcurrentModificationException
This exception may be thrown by methods that have detected concurrent modification of an object when such modification is not permissible.
DuplicateFormatFlagsException
Unchecked exception thrown when duplicate flags are provided in the format specifier.
EmptyStackException
Thrown by methods in the Stack class to indicate that the stack is empty.
FormatFlagsConversionMismatchException
Unchecked exception thrown when a conversion and flag are incompatible.
FormatterClosedException
Unchecked exception thrown when the formatter has been closed.
IllegalFormatCodePointException
Unchecked exception thrown when a character with an invalid Unicode code point as defined by Character#isValidCodePoint is passed to the Formatter.
IllegalFormatConversionException
Unchecked exception thrown when the argument corresponding to the format specifier is of an incompatible type.
IllegalFormatException
Unchecked exception thrown when a format string contains an illegal syntax or a format specifier that is incompatible with the given arguments.
IllegalFormatFlagsException
Unchecked exception thrown when an illegal combination flags is given.
IllegalFormatPrecisionException
Unchecked exception thrown when the precision is a negative value other than -1, the conversion does not support a precision, or the value is otherwise unsupported.
IllegalFormatWidthException
Unchecked exception thrown when the format width is a negative value other than -1 or is otherwise unsupported.
IllformedLocaleException
Thrown by methods in Locale and Locale.Builder to indicate that an argument is not a well-formed BCP 47 tag.
InputMismatchException
Thrown by a Scanner to indicate that the token retrieved does not match the pattern for the expected type, or that the token is out of range for the expected type.
InvalidPropertiesFormatException
Thrown to indicate that an operation could not complete because the input did not conform to the appropriate XML document type for a collection of properties, as per the Properties specification.
MissingFormatArgumentException
Unchecked exception thrown when there is a format specifier which does not have a corresponding argument or if an argument index refers to an argument that does not exist.
MissingFormatWidthException
Unchecked exception thrown when the format width is required.
MissingResourceException
Signals that a resource is missing.
NoSuchElementException
Thrown by various accessor methods to indicate that the element being requested does not exist.
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.
UnknownFormatConversionException
Unchecked exception thrown when an unknown conversion is given.
UnknownFormatFlagsException
Unchecked exception thrown when an unknown flag is given.

java.util.concurrent

BrokenBarrierException
Exception thrown when a thread tries to wait upon a barrier that is in a broken state, or which enters the broken state while the thread is waiting.
CancellationException
Exception indicating that the result of a value-producing task, such as a FutureTask, cannot be retrieved because the task was cancelled.
CompletionException
Exception thrown when an error or other exception is encountered in the course of completing a result or task.
ExecutionException
Exception thrown when attempting to retrieve the result of a task that aborted by throwing an exception.
RejectedExecutionException
Exception thrown by an Executor when a task cannot be accepted for execution.
TimeoutException
Exception thrown when a blocking operation times out.

java.util.jar

JarException
Signals that an error of some sort has occurred while reading from or writing to a JAR file.

java.util.prefs

BackingStoreException
Thrown to indicate that a preferences operation could not complete because of a failure in the backing store, or a failure to contact the backing store.
InvalidPreferencesFormatException
Thrown to indicate that an operation could not complete because the input did not conform to the appropriate XML document type for a collection of preferences, as per the Preferences specification.

java.util.regex

PatternSyntaxException
Unchecked exception thrown to indicate a syntax error in a regular-expression pattern.

java.util.zip

DataFormatException
Signals that a data format error has occurred.
ZipException
Signals that a Zip exception of some sort has occurred.

13 January 2016

Comments (frozen for the time being)

No one has commented on this page yet.


Интернет реклама