| Package | Description |
|---|---|
| java.lang | |
| java.lang.annotation | |
| java.lang.reflect |
Provides classes and interfaces for obtaining reflective
information about classes and objects.
|
| java.nio.charset | |
| java.util | |
| java.util.concurrent |
Utility classes commonly useful in concurrent programming.
|
| java.util.regex |
Classes for matching character sequences against patterns specified by regular
expressions.
|
| Modifier and Type | Class and Description |
|---|---|
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 |
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 |
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 |
NegativeArraySizeException
Thrown if an application tries to create an array with negative size.
|
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 |
SecurityException
Thrown by the security manager to indicate a security violation.
|
class |
StringIndexOutOfBoundsException
Thrown by
String methods to indicate that an index
is either negative or greater than the size of the string. |
class |
UnsupportedOperationException
Thrown to indicate that the requested operation is not supported.
|
| Modifier and Type | Class and Description |
|---|---|
class |
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).
|
class |
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).
|
| Modifier and Type | Class and Description |
|---|---|
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. |
| Modifier and Type | Class and Description |
|---|---|
class |
IllegalCharsetNameException
Unchecked exception thrown when a string that is not a
legal charset name is used as such.
|
class |
UnsupportedCharsetException
Unchecked exception thrown when no support is available
for a requested charset.
|
| Modifier and Type | Class and Description |
|---|---|
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. |
| Modifier and Type | Class and Description |
|---|---|
class |
CancellationException
Exception indicating that the result of a value-producing task,
such as a
FutureTask, cannot be retrieved because the task
was cancelled. |
class |
RejectedExecutionException
Exception thrown by an
Executor when a task cannot be
accepted for execution. |
| Modifier and Type | Class and Description |
|---|---|
class |
PatternSyntaxException
Unchecked exception thrown to indicate a syntax error in a
regular-expression pattern.
|
Copyright © 2025 API Design. All Rights Reserved.