| Package | Description |
|---|---|
| java.awt |
Contains all of the classes for creating user
interfaces and for painting graphics and images.
|
| java.awt.color |
Provides classes for color spaces.
|
| java.awt.datatransfer |
Provides interfaces and classes for transferring data
between and within applications.
|
| java.awt.dnd |
Drag and Drop is a direct manipulation gesture found in many Graphical
User Interface systems that provides a mechanism to transfer
information between two entities logically associated with presentation
elements in the GUI.
|
| java.awt.event |
Provides interfaces and classes for dealing with different
types of events fired by AWT components.
|
| java.awt.geom |
Provides the Java 2D classes for defining and performing operations
on objects related to two-dimensional geometry.
|
| java.awt.image |
Provides classes for creating and modifying images.
|
| java.awt.print |
Provides classes and interfaces for a general printing API.
|
| java.beans |
Contains classes related to developing
beans -- components
based on the JavaBeans™ architecture.
|
| 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.annotation |
Provides library support for the Java programming language
annotation facility.
|
| java.lang.instrument |
Provides services that allow Java programming language agents to instrument programs running on the JVM.
|
| java.lang.invoke |
The
java.lang.invoke package contains dynamic language support provided directly by
the Java core class libraries and virtual machine. |
| 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.nio |
Defines buffers, which are containers for data, and provides an overview of the
other NIO packages.
|
| java.nio.channels |
Defines channels, which represent connections to entities that are capable of
performing I/O operations, such as files and sockets; defines selectors, for
multiplexed, non-blocking I/O operations.
|
| java.nio.charset |
Defines charsets, decoders, and encoders, for translating between bytes and
Unicode characters.
|
| java.nio.file |
Defines interfaces and classes for the Java virtual machine to access files,
file attributes, and file systems.
|
| java.nio.file.attribute |
Interfaces and classes providing access to file and file system attributes.
|
| java.rmi |
Provides the RMI package.
|
| java.rmi.activation |
Provides support for RMI Object Activation.
|
| java.rmi.server |
Provides classes and interfaces for supporting the server
side of RMI.
|
| 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.sql |
Provides the API for accessing and processing data stored in a
data source (usually a relational database) using the
JavaTM programming language.
|
| java.text |
Provides classes and interfaces for handling text, dates, numbers, and messages
in a manner independent of natural languages.
|
| java.time |
The main API for dates, times, instants, and durations.
|
| java.time.format |
Provides classes to print and parse dates and times.
|
| java.time.temporal |
Access to date and time using fields and units, and date time adjusters.
|
| java.time.zone |
Support for time-zones and their rules.
|
| 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.concurrent |
Utility classes commonly useful in concurrent programming.
|
| 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.logging |
Provides the classes and interfaces of
the JavaTM 2
platform's core logging facilities.
|
| java.util.prefs |
This package allows applications to store and retrieve user and system
preference and configuration data.
|
| java.util.regex |
Classes for matching character sequences against patterns specified by regular
expressions.
|
| java.util.zip |
Provides classes for reading and writing the standard ZIP and GZIP
file formats.
|
| javax.activation | |
| javax.activity |
Contains Activity service related exceptions thrown by the ORB machinery during
unmarshalling.
|
| javax.annotation.processing |
Facilities for declaring annotation processors and for
allowing annotation processors to communicate with an annotation processing
tool environment.
|
| javax.crypto |
Provides the classes and interfaces for cryptographic operations.
|
| javax.imageio |
The main package of the Java Image I/O API.
|
| javax.imageio.metadata |
A package of the Java Image I/O API dealing with reading and writing
metadata.
|
| javax.imageio.spi |
A package of the Java Image I/O API containing the plug-in interfaces
for readers, writers, transcoders, and streams, and a runtime
registry.
|
| javax.imageio.stream |
A package of the Java Image I/O API dealing with low-level I/O from
files and streams.
|
| javax.lang.model |
Classes and hierarchies of packages used to model the Java
programming language.
|
| javax.lang.model.element |
Interfaces used to model elements of the Java programming language.
|
| javax.lang.model.type |
Interfaces used to model Java programming language types.
|
| javax.management |
Provides the core classes for the Java Management Extensions.
|
| javax.management.modelmbean |
Provides the definition of the ModelMBean classes.
|
| javax.management.monitor |
Provides the definition of the monitor classes.
|
| javax.management.openmbean |
Provides the open data types and Open MBean descriptor classes.
|
| javax.management.relation |
Provides the definition of the Relation Service.
|
| javax.management.remote |
Interfaces for remote access to
JMX MBean servers.
|
| javax.naming |
Provides the classes and interfaces for accessing naming services.
|
| javax.naming.directory |
Extends the javax.naming package to provide functionality
for accessing directory services.
|
| javax.naming.ldap |
Provides support for LDAPv3 extended operations and controls.
|
| javax.net.ssl |
Provides classes for the secure socket package.
|
| javax.print |
Provides the principal classes and interfaces for the
JavaTM Print Service API.
|
| javax.print.attribute |
Provides classes and interfaces
that describe the types of JavaTM Print
Service attributes and how they can be collected into attribute sets.
|
| javax.rmi.CORBA |
Contains portability APIs for RMI-IIOP.
|
| javax.script |
The scripting API consists of interfaces and classes that define
Java TM Scripting Engines and provides
a framework for their use in Java applications.
|
| javax.security.auth |
This package provides a framework for authentication and
authorization.
|
| javax.security.auth.callback |
This package provides the classes necessary for services
to interact with applications in order to retrieve
information (authentication data including usernames
or passwords, for example) or to display information
(error and warning messages, for example).
|
| javax.security.auth.login |
This package provides a pluggable authentication framework.
|
| javax.security.cert |
Provides classes for public key certificates.
|
| javax.security.sasl |
Contains class and interfaces for supporting SASL.
|
| javax.sound.midi |
Provides interfaces and classes for I/O, sequencing, and synthesis of MIDI
(Musical Instrument Digital Interface) data.
|
| javax.sound.sampled |
Provides interfaces and classes for capture, processing, and playback of sampled audio data.
|
| javax.sql.rowset |
Standard interfaces and base classes for JDBC
RowSet
implementations. |
| javax.sql.rowset.serial |
Provides utility classes to allow serializable mappings between SQL types
and data types in the Java programming language.
|
| javax.sql.rowset.spi |
The standard classes and interfaces that a third party vendor has to
use in its implementation of a synchronization provider.
|
| javax.swing |
Provides a set of "lightweight"
(all-Java language) components that,
to the maximum degree possible, work the same on all platforms.
|
| javax.swing.text |
Provides classes and interfaces that deal with editable
and noneditable text components.
|
| javax.swing.tree |
Provides classes and interfaces for dealing with
javax.swing.JTree. |
| javax.swing.undo |
Allows developers to provide support for undo/redo
in applications such as text editors.
|
| javax.transaction |
Contains three exceptions thrown by the ORB machinery during unmarshalling.
|
| javax.transaction.xa |
Provides the API that defines the contract between the transaction
manager and the resource manager, which allows the transaction
manager to enlist and delist resource objects (supplied by the
resource manager driver) in JTA transactions.
|
| javax.xml.bind |
Provides a runtime binding framework for client applications including
unmarshalling, marshalling, and validation capabilities.
|
| javax.xml.bind.helpers |
JAXB Provider Use Only: Provides partial default implementations for
some of the javax.xml.bind interfaces.
|
| javax.xml.crypto |
Common classes for XML cryptography.
|
| javax.xml.crypto.dsig |
Classes for generating and validating XML digital
signatures.
|
| javax.xml.datatype |
XML/Java Type Mappings.
|
| javax.xml.parsers |
Provides classes allowing the processing of XML documents.
|
| javax.xml.soap |
Provides the API for creating and building SOAP messages.
|
| javax.xml.stream | |
| javax.xml.transform |
This package defines the generic APIs for processing transformation
instructions, and performing a transformation from source to result.
|
| javax.xml.validation |
This package provides an API for validation of XML documents.
|
| javax.xml.ws |
This package contains the core JAX-WS APIs.
|
| javax.xml.ws.http |
This package defines APIs specific to the HTTP binding.
|
| javax.xml.ws.soap |
This package defines APIs specific to the SOAP binding.
|
| javax.xml.xpath |
This package provides an object-model neutral API for the
evaluation of XPath expressions and access to the evaluation
environment.
|
| org.ietf.jgss |
This package presents a framework that allows application developers to
make use of security services like authentication, data integrity and
data confidentiality from a variety of underlying security mechanisms
like Kerberos, using a unified API.
|
| org.omg.CORBA |
Provides the mapping of the OMG CORBA APIs to the JavaTM
programming language, including the class ORB, which is implemented
so that a programmer can use it as a fully-functional Object Request Broker
(ORB).
|
| org.omg.CORBA.DynAnyPackage |
Provides the exceptions used with the
DynAny interface
(InvalidValue,
Invalid, InvalidSeq, and
TypeMismatch). |
| org.omg.CORBA.ORBPackage |
Provides the exception
InvalidName, which is thrown
by the method ORB.resolve_initial_references
and the exception InconsistentTypeCode, which is thrown
by the Dynamic Any creation methods in the ORB class. |
| org.omg.CORBA.portable |
Provides a portability layer, that is, a set of ORB APIs
that makes it possible for code generated
by one vendor to run on another vendor's ORB.
|
| org.omg.CORBA.TypeCodePackage |
Provides the user-defined exceptions
BadKind
and Bounds, which are thrown by methods in
in the class TypeCode. |
| org.omg.CosNaming.NamingContextExtPackage |
This package contains the following classes, which are used in
org.omg.CosNaming.NamingContextExt:
|
| org.omg.CosNaming.NamingContextPackage |
This package contains Exception classes for the org.omg.CosNaming
package.
|
| org.omg.IOP.CodecFactoryPackage |
This package contains the exceptions
specified in the IOP::CodeFactory interface (as part of the Portable
Interceptors spec).
|
| org.omg.IOP.CodecPackage |
This package is generated from the IOP::Codec IDL interface
definition.
|
| org.omg.PortableInterceptor |
Provides a mechanism to register ORB hooks through which ORB services
can intercept the normal flow of execution of the ORB.
|
| org.omg.PortableInterceptor.ORBInitInfoPackage |
This package contains the exceptions and typedefs from the ORBInitInfo
local interface of the PortableInterceptor module specified in the OMG
Portable Interceptor specification,
http://cgi.omg.org/cgi-bin/doc?ptc/2000-08-06, section 21.7.2.
|
| org.omg.PortableServer |
Provides classes and interfaces for making the server side of your applications
portable across multivendor ORBs.
|
| org.omg.PortableServer.CurrentPackage |
Provides method implementations with
access to the identity of the object on which the
method was invoked.
|
| org.omg.PortableServer.POAManagerPackage |
Encapsulates the processing
state of the POAs it is associated with.
|
| org.omg.PortableServer.POAPackage |
Allows programmers to construct object implementations that are portable
between different ORB products.
|
| org.w3c.dom |
Provides the interfaces for the Document Object Model (DOM).
|
| org.w3c.dom.events | |
| org.w3c.dom.ls | |
| org.xml.sax |
This package provides the core SAX APIs.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
AWTError
Thrown when a serious Abstract Window Toolkit error has occurred.
|
|
class |
AWTException
Signals that an Abstract Window Toolkit exception has occurred.
|
|
class |
FontFormatException
Thrown by method createFont in the
Font class to indicate
that the specified font is bad. |
|
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.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
CMMException
This exception is thrown if the native CMM returns an error.
|
|
class |
ProfileDataException
This exception is thrown when an error occurs in accessing or
processing an ICC_Profile object.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
MimeTypeParseException
A class to encapsulate MimeType parsing related exceptions
|
|
class |
UnsupportedFlavorException
Signals that the requested data is not supported in this flavor.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
InvalidDnDOperationException
This exception is thrown by various methods in the java.awt.dnd package.
|
| Modifier and Type | Method | Description |
|---|---|---|
Throwable |
InvocationEvent.getThrowable()
Returns any Throwable caught while executing the Runnable's
run()
method. |
| Modifier and Type | Class | Description |
|---|---|---|
class |
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. |
|
class |
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. |
| Modifier and Type | Class | Description |
|---|---|---|
class |
ImagingOpException
The
ImagingOpException is thrown if one of the
BufferedImageOp or RasterOp filter methods cannot
process the image. |
|
class |
RasterFormatException
The
RasterFormatException is thrown if there is
invalid layout information in the Raster. |
| Modifier and Type | Class | Description |
|---|---|---|
class |
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. |
|
class |
PrinterException
The
PrinterException class and its subclasses are used
to indicate that an exceptional condition has occurred in the print
system. |
|
class |
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. |
| Modifier and Type | Method | Description |
|---|---|---|
Throwable |
PrinterIOException.getCause()
Returns the the cause of this exception (the
IOException
that terminated the print job). |
| Modifier and Type | Class | Description |
|---|---|---|
class |
IntrospectionException
Thrown when an exception happens during Introspection.
|
|
class |
PropertyVetoException
A PropertyVetoException is thrown when a proposed change to a
property represents an unacceptable value.
|
| Modifier and Type | Class | Description |
|---|---|---|
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 |
IOError
Thrown when a serious I/O error has occurred.
|
|
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 |
UncheckedIOException
Wraps an
IOException with an unchecked exception. |
|
class |
UnsupportedEncodingException
The Character Encoding is not supported.
|
|
class |
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.
|
|
class |
WriteAbortedException
Signals that one of the ObjectStreamExceptions was thrown during a
write operation.
|
| Modifier and Type | Method | Description |
|---|---|---|
Throwable |
WriteAbortedException.getCause()
Returns the exception that terminated the operation (the cause).
|
| Constructor | Description |
|---|---|
IOError(Throwable cause)
Constructs a new instance of IOError with the specified cause.
|
|
IOException(String message,
Throwable cause)
Constructs an
IOException with the specified detail message
and cause. |
|
IOException(Throwable cause)
Constructs an
IOException with the specified cause and a
detail message of (cause==null ? null : cause.toString())
(which typically contains the class and detail message of cause). |
| Modifier and Type | Class | Description |
|---|---|---|
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 |
BootstrapMethodError
Thrown to indicate that an
invokedynamic instruction has
failed to find its bootstrap method,
or the bootstrap method has failed to provide a
call site with a target
of the correct method type. |
|
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 the Java Virtual Machine detects a circularity in the
superclass hierarchy of a class being loaded.
|
|
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 |
EnumConstantNotPresentException
Thrown when an application tries to access an enum constant by name
and the enum type contains no constant with the specified name.
|
|
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. |
|
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 occupied,
and the thread is interrupted, either before or during the activity.
|
|
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 |
ReflectiveOperationException
Common superclass of exceptions thrown by reflective operations in
core reflection.
|
|
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 (deprecated) Thread.stop() method is invoked. |
|
class |
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.
|
|
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.
|
| Modifier and Type | Method | Description |
|---|---|---|
Throwable |
Throwable.fillInStackTrace()
Fills in the execution stack trace.
|
|
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 |
ClassNotFoundException.getCause()
Returns the cause of this exception (the exception that was raised
if an error occurred while attempting to load the class; otherwise
null).
|
|
Throwable |
Throwable.getCause()
Returns the cause of this throwable or
null if the
cause is nonexistent or unknown. |
|
Throwable |
ExceptionInInitializerError.getException()
Returns the exception that occurred during a static initialization that
caused this error to be created.
|
|
Throwable |
ClassNotFoundException.getException()
Returns the exception that was raised if an error occurred while
attempting to load the class.
|
|
Throwable[] |
Throwable.getSuppressed()
Returns an array containing all of the exceptions that were
suppressed, typically by the
try-with-resources
statement, in order to deliver this exception. |
|
Throwable |
Throwable.initCause(Throwable cause)
Initializes the cause of this throwable to the specified value.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
Throwable.addSuppressed(Throwable exception)
Appends the specified exception to the exceptions that were
suppressed in order to deliver this exception.
|
|
Throwable |
Throwable.initCause(Throwable cause)
Initializes the cause of this throwable to the specified value.
|
|
void |
Thread.stop(Throwable obj)
Deprecated.
This method was originally designed to force a thread to stop
and throw a given
Throwable as an exception. It was
inherently unsafe (see Thread.stop() for details), and furthermore
could be used to generate exceptions that the target thread was
not prepared to handle.
For more information, see
Why
are Thread.stop, Thread.suspend and Thread.resume Deprecated?. |
|
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, and the thread
does not have a specific
Thread.UncaughtExceptionHandler
installed. |
|
void |
Thread.UncaughtExceptionHandler.uncaughtException(Thread t,
Throwable e)
Method invoked when the given thread terminates due to the
given uncaught exception.
|
| Modifier and Type | Method | Description |
|---|---|---|
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.
|
| Constructor | Description |
|---|---|
AssertionError(String message,
Throwable cause)
Constructs a new
AssertionError with the specified
detail message and cause. |
|
BootstrapMethodError(String s,
Throwable cause)
Constructs a
BootstrapMethodError with the specified
detail message and cause. |
|
BootstrapMethodError(Throwable cause)
Constructs a
BootstrapMethodError with the specified
cause. |
|
ClassNotFoundException(String s,
Throwable ex)
Constructs a
ClassNotFoundException with the
specified detail message and optional exception that was
raised while loading the class. |
|
Error(String message,
Throwable cause)
Constructs a new error with the specified detail message and
cause.
|
|
Error(String message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace)
Constructs a new error with the specified detail message,
cause, suppression enabled or disabled, and writable stack
trace enabled or disabled.
|
|
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). |
|
Exception(String message,
Throwable cause)
Constructs a new exception with the specified detail message and
cause.
|
|
Exception(String message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace)
Constructs a new exception with the specified detail message,
cause, suppression enabled or disabled, and writable stack
trace enabled or disabled.
|
|
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. |
|
IllegalArgumentException(String message,
Throwable cause)
Constructs a new exception with the specified detail message and
cause.
|
|
IllegalArgumentException(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).
|
|
IllegalStateException(String message,
Throwable cause)
Constructs a new exception with the specified detail message and
cause.
|
|
IllegalStateException(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).
|
|
InternalError(String message,
Throwable cause)
Constructs an
InternalError with the specified detail
message and cause. |
|
InternalError(Throwable cause)
Constructs an
InternalError with the specified cause
and a detail message of (cause==null ? null :
cause.toString()) (which typically contains the class and
detail message of cause). |
|
LinkageError(String s,
Throwable cause)
Constructs a
LinkageError with the specified detail
message and cause. |
|
ReflectiveOperationException(String message,
Throwable cause)
Constructs a new exception with the specified detail message
and cause.
|
|
ReflectiveOperationException(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). |
|
RuntimeException(String message,
Throwable cause)
Constructs a new runtime exception with the specified detail message and
cause.
|
|
RuntimeException(String message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace)
Constructs a new runtime exception with the specified detail
message, cause, suppression enabled or disabled, and writable
stack trace enabled or disabled.
|
|
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).
|
|
SecurityException(String message,
Throwable cause)
Creates a
SecurityException with the specified
detail message and cause. |
|
SecurityException(Throwable cause)
Creates a
SecurityException 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(String message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace)
Constructs a new throwable with the specified detail message,
cause, suppression enabled or
disabled, and writable stack trace enabled or disabled.
|
|
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). |
|
TypeNotPresentException(String typeName,
Throwable cause)
Constructs a TypeNotPresentException for the named type
with the specified cause.
|
|
UnsupportedOperationException(String message,
|