Uses of Class
java.lang.Throwable
Packages that useThrowable Package Description com.sun.jdi This is the core package of the Java Debug Interface (JDI), it defines mirrors for values, types, and the target VirtualMachine itself - as well bootstrapping facilities.com.sun.jdi.connect This package defines connections between the virtual machine using the JDI and the target virtual machine.com.sun.jdi.connect.spi This package comprises the interfaces and classes used to develop newTransportService
implementations.com.sun.jdi.request This package is used to request that a JDI event be sent under specified conditions.com.sun.nio.sctp A Java API for Stream Control Transport Protocol.com.sun.tools.attach Provides the API to attach to a Java™ virtual machine.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 developingbeans -- 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 Thejava.lang.invoke
package provides low-level primitives for interacting with the Java Virtual Machine.java.lang.module Classes to support module descriptors and creating configurations of modules by means of resolution and service binding.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.net.http HTTP Client and WebSocket APIsjava.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 serverside 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 deprecated.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 adata source (usually a relational database) using theJava™ 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, some internationalization support classes, a service loader, properties, random number generation, string parsing and scanning classes, base64 encoding and decoding, a bit array, and several miscellaneous utility classes.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 Java™ 2 platform's core logging facilities.java.util.prefs This package allows applications to store and retrieve user and systempreference 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.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 thejavax.naming
package to provide functionalityfor 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 Java™ Print Service API.javax.print.attribute Provides classes and interfaces that describe the types of Java™ Print Service attributes and how they can be collected into attribute sets.javax.script The scripting API consists of interfaces and classes that defineJava™ Scripting Engines and providesa 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.smartcardio Java™ Smart Card I/O APIjavax.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 JDBCRowSet
implementations.javax.sql.rowset.serial Provides utility classes to allow serializable mappings between SQL typesand 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 withjavax.swing.JTree
.javax.swing.undo Allows developers to provide support for undo/redo in applications such as text editors.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.catalog Provides the classes for implementing XML Catalogs OASIS Standard V1.1, 7 October 2005.javax.xml.crypto Common classes for XML cryptography.javax.xml.crypto.dsig Classes for generating and validating XML digitalsignatures.javax.xml.datatype Defines XML/Java Type Mappings.javax.xml.parsers Provides the classes for processing XML documents with a SAX (Simple API for XML) parser or a DOM (Document Object Model) Document builder.javax.xml.stream Defines interfaces and classes for the Streaming API for XML (StAX).javax.xml.transform Defines the generic APIs for processing transformation instructions, and performing a transformation from source to result.javax.xml.validation Provides an API for validation of XML documents.javax.xml.xpath Provides anobject-model neutral API for the evaluation of XPath expressions and access to the evaluation environment.jdk.dynalink Contains interfaces and classes that are used to link aninvokedynamic
call site.jdk.dynalink.linker Contains interfaces and classes needed by language runtimes to implement their own language-specific object models and type conversions.jdk.jshell Provides interfaces for creating tools, such as a Read-Eval-Print Loop (REPL), which interactively evaluate "snippets" of Java programming language code.jdk.jshell.execution Provides implementation support for building JShell execution engines.jdk.jshell.spi Defines the Service Provider Interface for pluggable JShell execution engines.jdk.nashorn.api.scripting This package provides thejavax.script
integration, which is the preferred way to use Nashorn.jdk.nashorn.api.tree Nashorn parser API provides interfaces to represent ECMAScript source code as abstract syntax trees (AST) and Parser to parse ECMAScript source scripts.jdk.security.jarsigner This package defines APIs for signing jar files.netscape.javascript Provides Java code the ability to access the JavaScript engine and the HTML DOM in the web browser.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.w3c.dom Provides the interfaces for the Document Object Model (DOM).org.w3c.dom.events Provides interfaces for DOM Level 2 Events.org.w3c.dom.ls Provides interfaces for DOM Level 3 Load and Save.org.w3c.dom.ranges Provides interfaces for DOM Level 2 Range.org.w3c.dom.xpath Provides interfaces for DOM Level 3 XPath Specification.org.xml.sax Provides the core SAX APIs.Uses ofThrowable incom.sun.jdi
Subclasses ofThrowable incom.sun.jdi Modifier and Type Class Description class
AbsentInformationException
Thrown to indicate line number or variable information is not available.class
ClassNotLoadedException
Thrown to indicate that the requested class has not yet been loaded through the appropriate class loader.class
ClassNotPreparedException
Thrown to indicate that the requested operation cannot be completed because the specified class has not yet been prepared.class
IncompatibleThreadStateException
Thrown to indicate that the requested operation cannot be completed while the specified thread is in its current state.class
InconsistentDebugInfoException
Thrown to indicate that there is an inconistency in the debug information provided by the target VM.class
InternalException
Thrown to indicate that an unexpected internal error has occurred.class
InvalidCodeIndexException
Deprecated.This exception is no longer thrownclass
InvalidLineNumberException
Deprecated.This exception is no longer thrownclass
InvalidModuleException
Thrown to indicate that the requested module is invalid or became invalid after the module was unloaded.class
InvalidStackFrameException
Thrown to indicate that the requested operation cannot be completed because the specified stack frame is no longer valid.class
InvalidTypeException
Thrown to indicate a type mismatch in setting the value of a field or variable, or in specifying the return value of a method.class
InvocationException
Thrown to indicate an exception occurred in an invoked method within the target VM.class
NativeMethodException
Thrown to indicate an operation cannot be completed because it is not valid for a native method.class
ObjectCollectedException
Thrown to indicate that the requested operation cannot be completed because the specified object has been garbage collected.class
VMCannotBeModifiedException
Thrown to indicate that the operation is invalid because it would modify the VM and the VM is read-only.class
VMDisconnectedException
Unchecked exception thrown to indicate that the requested operation cannot be completed because there is no longer a connection to the target VM.class
VMMismatchException
Thrown to indicate that the requested operation cannot be completed because the a mirror from one target VM is being combined with a mirror from another target VM.class
VMOutOfMemoryException
Thrown to indicate that the requested operation cannot be completed because the target VM has run out of memory.Uses ofThrowable incom.sun.jdi.connect
Subclasses ofThrowable incom.sun.jdi.connect Modifier and Type Class Description class
IllegalConnectorArgumentsException
Thrown to indicate an invalid argument or inconsistent passed to aConnector
.class
TransportTimeoutException
This exception may be thrown as a result of a timeout when attaching to a target VM, or waiting to accept a connection from a target VM.class
VMStartException
A target VM was successfully launched, but terminated with an error before a connection could be established.Uses ofThrowable incom.sun.jdi.connect.spi
Subclasses ofThrowable incom.sun.jdi.connect.spi Modifier and Type Class Description class
ClosedConnectionException
This exception may be thrown as a result of an asynchronous close of aConnection
while an I/O operation is in progress.Uses ofThrowable incom.sun.jdi.request
Subclasses ofThrowable incom.sun.jdi.request Modifier and Type Class Description class
DuplicateRequestException
Thrown to indicate a duplicate event request.class
InvalidRequestStateException
Thrown to indicate that the requested event cannot be modified because it is enabled.Uses ofThrowable incom.sun.nio.sctp
Subclasses ofThrowable incom.sun.nio.sctp Modifier and Type Class Description class
IllegalReceiveException
Unchecked exception thrown when an attempt is made to invoke thereceive
method ofSctpChannel
orSctpMultiChannel
from a notification handler.class
IllegalUnbindException
Unchecked exception thrown when an attempt is made to remove an address that is not bound to the channel, or remove an address from a channel that has only one address bound to it.class
InvalidStreamException
Unchecked exception thrown when an attempt is made to send a message to an invalid stream.Uses ofThrowable incom.sun.tools.attach
Subclasses ofThrowable incom.sun.tools.attach Modifier and Type Class Description class
AgentInitializationException
The exception thrown when an agent fails to initialize in the target Java virtual machine.class
AgentLoadException
The exception thrown when an agent cannot be loaded into the target Java virtual machine.class
AttachNotSupportedException
Thrown byVirtualMachine.attach
when attempting to attach to a Java virtual machine for which a compatibleAttachProvider
does not exist.class
AttachOperationFailedException
Exception type to signal that an attach operation failed in the target VM.Uses ofThrowable injava.awt
Subclasses ofThrowable injava.awt 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 theFont
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.Uses ofThrowable injava.awt.color
Subclasses ofThrowable injava.awt.color 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.Uses ofThrowable injava.awt.datatransfer
Subclasses ofThrowable injava.awt.datatransfer 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.Uses ofThrowable injava.awt.dnd
Subclasses ofThrowable injava.awt.dnd Modifier and Type Class Description class
InvalidDnDOperationException
This exception is thrown by various methods in the java.awt.dnd package.Uses ofThrowable injava.awt.event
Methods injava.awt.event that returnThrowable Modifier and Type Method Description Throwable
InvocationEvent. getThrowable()
Returns any Throwable caught while executing the Runnable'srun()
method.Uses ofThrowable injava.awt.geom
Subclasses ofThrowable injava.awt.geom Modifier and Type Class Description class
IllegalPathStateException
TheIllegalPathStateException
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 aGeneralPath
without an initial moveto.class
NoninvertibleTransformException
TheNoninvertibleTransformException
class represents an exception that is thrown if an operation is performed requiring the inverse of anAffineTransform
object but theAffineTransform
is in a non-invertible state.Uses ofThrowable injava.awt.image
Subclasses ofThrowable injava.awt.image Modifier and Type Class Description class
ImagingOpException
TheImagingOpException
is thrown if one of theBufferedImageOp
orRasterOp
filter methods cannot process the image.class
RasterFormatException
TheRasterFormatException
is thrown if there is invalid layout information in theRaster
.Uses ofThrowable injava.awt.print
Subclasses ofThrowable injava.awt.print Modifier and Type Class Description class
PrinterAbortException
ThePrinterAbortException
class is a subclass ofPrinterException
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
ThePrinterException
class and its subclasses are used to indicate that an exceptional condition has occurred in the print system.class
PrinterIOException
ThePrinterIOException
class is a subclass ofPrinterException
and is used to indicate that an IO error of some sort has occurred while printing.Methods injava.awt.print that returnThrowable Modifier and Type Method Description Throwable
PrinterIOException. getCause()
Returns the cause of this exception (theIOException
that terminated the print job).Uses ofThrowable injava.beans
Subclasses ofThrowable injava.beans 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.Uses ofThrowable injava.io
Subclasses ofThrowable injava.io 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 anIOException
with an unchecked exception.class
UnsupportedEncodingException
The Character Encoding is not supported.class
UTFDataFormatException
Signals that a malformed string inmodified 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.Methods injava.io that returnThrowable Modifier and Type Method Description Throwable
WriteAbortedException. getCause()
Returns the exception that terminated the operation (thecause).Constructors injava.io with parameters of typeThrowable Constructor Description IOError(Throwable cause)
Constructs a new instance of IOError with the specified cause.IOException(String message,Throwable cause)
Constructs anIOException
with the specified detail message and cause.IOException(Throwable cause)
Constructs anIOException
with the specified cause and a detail message of(cause==null ? null : cause.toString())
(which typically contains the class and detail message ofcause
).Uses ofThrowable injava.lang
Subclasses ofThrowable injava.lang 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 aninvokedynamic
instruction or a dynamic constant failed to resolve its bootstrap method and arguments, or forinvokedynamic
instruction the bootstrap method has failed to provide acall site with atarget of the correctmethod type, or for a dynamic constant the bootstrap method has failed to provide a constant value of the required 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: TheforName
method in classClass
.class
CloneNotSupportedException
Thrown to indicate that theclone
method in classObject
has been called to clone an object, but that the object's class does not implement theCloneable
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
AnError
is a subclass ofThrowable
that indicates serious problems that a reasonable application should not try to catch.class
Exception
The classException
and its subclasses are a form ofThrowable
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
IllegalCallerException
Thrown to indicate that a method has been called by an inappropriate caller.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 Javanew
construct to instantiate an abstract class or an interface.class
InstantiationException
Thrown when an application tries to create an instance of a class using thenewInstance
method in classClass
, 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
LayerInstantiationException
Thrown when creating amodule layer fails.class
LinkageError
Subclasses ofLinkageError
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 aClassLoader
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 thenew
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 usenull
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 byString
methods to indicate that an index is either negative or greater than the size of the string.class
ThreadDeath
An instance ofThreadDeath
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 declarednative
.class
UnsupportedClassVersionError
Thrown when the Java Virtual Machine attempts to read a class file and determines that the major and minor version numbers in the file are not supported.class
UnsupportedOperationException
Thrown to indicate that the requested operation is not supported.class
VerifyError
Thrown when the "verifier" detects that a class file, though well formed, contains some sort of internal inconsistency or security problem.class
VirtualMachineError
Thrown to indicate that the Java Virtual Machine is broken or has run out of resources necessary for it to continue operating.Methods injava.lang that returnThrowable Modifier and Type Method Description Throwable
Throwable. fillInStackTrace()
Fills in the execution stack trace.Throwable
ClassNotFoundException. getCause()
Returns the cause of this exception (the exception that was raised if an error occurred while attempting to load the class; otherwisenull
).Throwable
ExceptionInInitializerError. getCause()
Returns the cause of this error (the exception that occurred during a static initialization that caused this error to be created).Throwable
Throwable. getCause()
Returns the cause of this throwable ornull
if the cause is nonexistent or unknown.Throwable
ClassNotFoundException. getException()
Returns the exception that was raised if an error occurred while attempting to load the class.Throwable
ExceptionInInitializerError. getException()
Returns the exception that occurred during a static initialization that caused this error to be created.Throwable[]
Throwable. getSuppressed()
Returns an array containing all of the exceptions that were suppressed, typically by thetry
-with-resources statement, in order to deliver this exception.Throwable
Throwable. initCause(Throwable cause)
Initializes thecause of this throwable to the specified value.Methods injava.lang with parameters of typeThrowable 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 thecause of this throwable to the specified value.default void
System.Logger. log(System.Logger.Level level,String msg,Throwable thrown)
Logs a message associated with a given throwable.default void
System.Logger. log(System.Logger.Level level,Supplier<String> msgSupplier,Throwable thrown)
Logs a lazily supplied message associated with a given throwable.void
System.Logger. log(System.Logger.Level level,ResourceBundle bundle,String msg,Throwable thrown)
Logs a localized message associated with a given throwable.void
Thread.UncaughtExceptionHandler. uncaughtException(Thread t,Throwable e)
Method invoked when the given thread terminates due to the given uncaught exception.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 specificThread.UncaughtExceptionHandler
installed.Methods injava.lang that throwThrowable Modifier and Type Method Description protected void
Object. finalize()
Deprecated.The finalization mechanism is inherently problematic.Constructors injava.lang with parameters of typeThrowable Constructor Description AssertionError(String message,Throwable cause)
Constructs a newAssertionError
with the specified detail message and cause.BootstrapMethodError(String s,Throwable cause)
Constructs aBootstrapMethodError
with the specified detail message and cause.BootstrapMethodError(Throwable cause)
Constructs aBootstrapMethodError
with the specified cause.ClassNotFoundException(String s,Throwable ex)
Constructs aClassNotFoundException
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 ofcause
).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 ofcause
).ExceptionInInitializerError(Throwable thrown)
Constructs a newExceptionInInitializerError
class by saving a reference to theThrowable
object thrown for later retrieval by theExceptionInInitializerError.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 ofcause
).IllegalCallerException(String message,Throwable cause)
Constructs a new exception with the specified detail message and cause.IllegalCallerException(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 ofcause
).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 ofcause
).InternalError(String message,Throwable cause)
Constructs anInternalError
with the specified detail message and cause.InternalError(Throwable cause)
Constructs anInternalError
with the specified cause and a detail message of(cause==null ? null : cause.toString())
(which typically contains the class and detail message ofcause
).LayerInstantiationException(String msg,Throwable cause)
Constructs aLayerInstantiationException
with the given detail message and cause.LayerInstantiationException(Throwable cause)
Constructs aLayerInstantiationException
with the given cause.LinkageError(String s,Throwable cause)
Constructs aLinkageError
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 ofcause
).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 ofcause
).SecurityException(String message,Throwable cause)
Creates aSecurityException
with the specified detail message and cause.SecurityException(Throwable cause)
Creates aSecurityException
with the specified cause and a detail message of(cause==null ? null : cause.toString())
(which typically contains the class and detail message ofcause
).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 ofcause
).TypeNotPresentException(String typeName,Throwable cause)
Constructs aTypeNotPresentException
for the named type with the specified cause.UnsupportedOperationException(String message,Throwable cause)
Constructs a new exception with the specified detail message and cause.UnsupportedOperationException(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 ofcause
).VirtualMachineError(String message,Throwable cause)
Constructs aVirtualMachineError
with the specified detail message and cause.VirtualMachineError(Throwable cause)
Constructs an aVirtualMachineError
with the specified cause and a detail message of(cause==null ? null : cause.toString())
(which typically contains the class and detail message ofcause
).Uses ofThrowable injava.lang.annotation
Subclasses ofThrowable injava.lang.annotation Modifier and Type Class Description class
AnnotationFormatError
Thrown when the annotation parser attempts to read an annotation from a class file and determines that the annotation is malformed.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).Constructors injava.lang.annotation with parameters of typeThrowable Constructor Description AnnotationFormatError(String message,Throwable cause)
Constructs a newAnnotationFormatError
with the specified detail message and cause.AnnotationFormatError(Throwable cause)
Constructs a newAnnotationFormatError
with the specified cause and a detail message of(cause == null ? null : cause.toString())
(which typically contains the class and detail message ofcause
).Uses ofThrowable injava.lang.instrument
Subclasses ofThrowable injava.lang.instrument Modifier and Type Class Description class
IllegalClassFormatException
Thrown by an implementation ofClassFileTransformer.transform
when its input parameters are invalid.class
UnmodifiableClassException
Thrown by an implementation ofInstrumentation.redefineClasses
when one of the specified classes cannot be modified.class
UnmodifiableModuleException
Thrown to indicate that a module cannot be modified.Uses ofThrowable injava.lang.invoke
Subclasses ofThrowable injava.lang.invoke Modifier and Type Class Description class
LambdaConversionException
LambdaConversionExceptionclass
StringConcatException
StringConcatException is thrown byStringConcatFactory
when linkage invariants are violated.class
WrongMethodTypeException
Thrown to indicate that code has attempted to call a method handle via the wrong method type.Method parameters injava.lang.invoke with type arguments of typeThrowable Modifier and Type Method Description staticMethodHandle
MethodHandles. catchException(MethodHandle target,Class<? extendsThrowable> exType,MethodHandle handler)
Makes a method handle which adapts a target method handle, by running it inside an exception handler.Methods injava.lang.invoke that throwThrowable Modifier and Type Method Description staticObject
ConstantBootstraps. invoke(MethodHandles.Lookup lookup,String name,Class<?> type,MethodHandle handle,Object... args)
Returns the result of invoking a method handle with the provided arguments.Object
MethodHandle. invoke(Object... args)
Invokes the method handle, allowing any caller type descriptor, and optionally performing conversions on arguments and return values.Object
MethodHandle. invokeExact(Object... args)
Invokes the method handle, allowing any caller type descriptor, but requiring an exact type match.Object
MethodHandle. invokeWithArguments(Object... arguments)
Performs a variable arity invocation, passing the arguments in the given array to the method handle, as if via an inexactinvoke
from a call site which mentions only the typeObject
, and whose actual argument count is the length of the argument array.Object
MethodHandle. invokeWithArguments(List<?> arguments)
Performs a variable arity invocation, passing the arguments in the given list to the method handle, as if via an inexactinvoke
from a call site which mentions only the typeObject
, and whose actual argument count is the length of the argument list.Constructors injava.lang.invoke with parameters of typeThrowable Constructor Description LambdaConversionException(String message,Throwable cause)
Constructs aLambdaConversionException
with a message and cause.LambdaConversionException(String message,Throwable cause, boolean enableSuppression, boolean writableStackTrace)
Constructs aLambdaConversionException
with a message, cause, and other settings.LambdaConversionException(Throwable cause)
Constructs aLambdaConversionException
with a cause.StringConcatException(String msg,Throwable cause)
Constructs an exception with a message and a linked throwableConstructors injava.lang.invoke that throwThrowable Constructor Description ConstantCallSite(MethodType targetType,MethodHandle createTargetHook)
Creates a call site with a permanent target, possibly bound to the call site itself.Uses ofThrowable injava.lang.module
Subclasses ofThrowable injava.lang.module Modifier and Type Class Description class
FindException
Thrown by aModuleFinder
when an error occurs finding a module.class
InvalidModuleDescriptorException
Thrown when reading a module descriptor and the module descriptor is found to be malformed or otherwise cannot be interpreted as a module descriptor.class
ResolutionException
Thrown when resolving a set of modules, or resolving a set of modules with service binding, fails.Constructors injava.lang.module with parameters of typeThrowable Constructor Description FindException(String msg,Throwable cause)
Constructs aFindException
with the given detail message and cause.FindException(Throwable cause)
Constructs aFindException
with the given cause.ResolutionException(String msg,Throwable cause)
Constructs aResolutionException
with the given detail message and cause.ResolutionException(Throwable cause)
Constructs an instance of this exception with the given cause.Uses ofThrowable injava.lang.reflect
Subclasses ofThrowable injava.lang.reflect Modifier and Type Class Description class
GenericSignatureFormatError
Thrown when a syntactically malformed signature attribute is encountered by a reflective method that needs to interpret the generic signature information for a type, method or constructor.class
InaccessibleObjectException
Thrown when Java language access checks cannot be suppressed.class
InvocationTargetException
InvocationTargetException is a checked exception that wraps an exception thrown by an invoked method or constructor.class
MalformedParameterizedTypeException
Thrown when a semantically malformed parameterized type is encountered by a reflective method that needs to instantiate it.class
MalformedParametersException
Thrown whenthe java.lang.reflect package
attempts to read method parameters from a class file and determines that one or more parameters are malformed.class
UndeclaredThrowableException
Thrown by a method invocation on a proxy instance if its invocation handler'sinvoke
method throws a checked exception (aThrowable
that is not assignable toRuntimeException
orError
) that is not assignable to any of the exception types declared in thethrows
clause of the method that was invoked on the proxy instance and dispatched to the invocation handler.Methods injava.lang.reflect that returnThrowable Modifier and Type Method Description Throwable
InvocationTargetException. getCause()
Returns the cause of this exception (the thrown target exception, which may benull
).Throwable
UndeclaredThrowableException. getCause()
Returns the cause of this exception (theThrowable
instance wrapped in thisUndeclaredThrowableException
, which may benull
).Throwable
InvocationTargetException. getTargetException()
Get the thrown target exception.Throwable
UndeclaredThrowableException. getUndeclaredThrowable()
Returns theThrowable
instance wrapped in thisUndeclaredThrowableException
, which may benull
.Methods injava.lang.reflect that throwThrowable Modifier and Type Method Description Object
InvocationHandler. invoke(Object proxy,Method method,Object[] args)
Processes a method invocation on a proxy instance and returns the result.Constructors injava.lang.reflect with parameters of typeThrowable Constructor Description InvocationTargetException(Throwable target)
Constructs a InvocationTargetException with a target exception.InvocationTargetException(Throwable target,String s)
Constructs a InvocationTargetException with a target exception and a detail message.UndeclaredThrowableException(Throwable undeclaredThrowable)
Constructs anUndeclaredThrowableException
with the specifiedThrowable
.UndeclaredThrowableException(Throwable undeclaredThrowable,String s)
Constructs anUndeclaredThrowableException
with the specifiedThrowable
and a detail message.Uses ofThrowable injava.net
Subclasses ofThrowable injava.net Modifier and Type Class Description 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
HttpRetryException
Thrown to indicate that a HTTP request needs to be retried but cannot be retried automatically, due to streaming mode being enabled.class
MalformedURLException
Thrown to indicate that a malformed URL has occurred.class
NoRouteToHostException
Signals that an error occurred while attempting to connect a socket to a remote address and port.class
PortUnreachableException
Signals that an ICMP Port Unreachable message has been received on a connected datagram.class
ProtocolException
Thrown to indicate that there is an error in the underlying protocol, such as a TCP error.class
SocketException
Thrown to indicate that there is an error creating or accessing a Socket.class
SocketTimeoutException
Signals that a timeout has occurred on a socket read or accept.class
UnknownHostException
Thrown to indicate that the IP address of a host could not be determined.class
UnknownServiceException
Thrown to indicate that an unknown service exception has occurred.class
URISyntaxException
Checked exception thrown to indicate that a string could not be parsed as a URI reference.Uses ofThrowable injava.net.http
Subclasses ofThrowable injava.net.http Modifier and Type Class Description class
HttpConnectTimeoutException
Thrown when a connection, over which anHttpRequest
is intended to be sent, is not successfully established within a specified time period.class
HttpTimeoutException
Thrown when a response is not received within a specified time period.class
WebSocketHandshakeException
Thrown when the opening handshake has failed.Methods injava.net.http with parameters of typeThrowable Modifier and Type Method Description default void
WebSocket.Listener. onError(WebSocket webSocket,Throwable error)
An error has occurred.Uses ofThrowable injava.nio
Subclasses ofThrowable injava.nio Modifier and Type Class Description class
BufferOverflowException
Unchecked exception thrown when a relativeput operation reaches the target buffer's limit.class
BufferUnderflowException
Unchecked exception thrown when a relativeget operation reaches the source buffer's limit.class
InvalidMarkException
Unchecked exception thrown when an attempt is made to reset a buffer when its mark is not defined.class
ReadOnlyBufferException
Unchecked exception thrown when a content-mutation method such asput
orcompact
is invoked upon a read-only buffer.Uses ofThrowable injava.nio.channels
Subclasses ofThrowable injava.nio.channels Modifier and Type Class Description class
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.class
AlreadyBoundException
Unchecked exception thrown when an attempt is made to bind the socket a network oriented channel that is already bound.class
AlreadyConnectedException
Unchecked exception thrown when an attempt is made to connect aSocketChannel
that is already connected.class
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.class
CancelledKeyException
Unchecked exception thrown when an attempt is made to use a selection key that is no longer valid.class
ClosedByInterruptException
Checked exception received by a thread when another thread interrupts it while it is blocked in an I/O operation upon a channel.class
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.class
ClosedSelectorException
Unchecked exception thrown when an attempt is made to invoke an I/O operation upon a closed selector.class
ConnectionPendingException
Unchecked exception thrown when an attempt is made to connect aSocketChannel
for which a non-blocking connection operation is already in progress.class
FileLockInterruptionException
Checked exception received by a thread when another thread interrupts it while it is waiting to acquire a file lock.class
IllegalBlockingModeException
Unchecked exception thrown when a blocking-mode-specific operation is invoked upon a channel in the incorrect blocking mode.class
IllegalChannelGroupException
Unchecked exception thrown when an attempt is made to open a channel in a group that was not created by the same provider.class
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.class
InterruptedByTimeoutException
Checked exception received by a thread when a timeout elapses before an asynchronous operation completes.class
NoConnectionPendingException
Unchecked exception thrown when thefinishConnect
method of aSocketChannel
is invoked without first successfully invoking itsconnect
method.class
NonReadableChannelException
Unchecked exception thrown when an attempt is made to read from a channel that was not originally opened for reading.class
NonWritableChannelException
Unchecked exception thrown when an attempt is made to write to a channel that was not originally opened for writing.class
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.class
NotYetConnectedException
Unchecked exception thrown when an attempt is made to invoke an I/O operation upon a socket channel that is not yet connected.class
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.class
ReadPendingException
Unchecked exception thrown when an attempt is made to read from an asynchronous socket channel and a previous read has not completed.class
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.class
UnresolvedAddressException
Unchecked exception thrown when an attempt is made to invoke a network operation upon an unresolved socket address.class
UnsupportedAddressTypeException
Unchecked exception thrown when an attempt is made to bind or connect to a socket address of a type that is not supported.class
WritePendingException
Unchecked exception thrown when an attempt is made to write to an asynchronous socket channel and a previous write has not completed.Methods injava.nio.channels with parameters of typeThrowable Modifier and Type Method Description void
CompletionHandler. failed(Throwable exc,A attachment)
Invoked when an operation fails.Uses ofThrowable injava.nio.charset
Subclasses ofThrowable injava.nio.charset Modifier and Type Class Description class
CharacterCodingException
Checked exception thrown when a character encoding or decoding error occurs.class
CoderMalfunctionError
Error thrown when thedecodeLoop
method of aCharsetDecoder
, or theencodeLoop
method of aCharsetEncoder
, throws an unexpected exception.class
IllegalCharsetNameException
Unchecked exception thrown when a string that is not alegal charset name is used as such.class
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.class
UnmappableCharacterException
Checked exception thrown when an input character (or byte) sequence is valid but cannot be mapped to an output byte (or character) sequence.class
UnsupportedCharsetException
Unchecked exception thrown when no support is available for a requested charset.Uses ofThrowable injava.nio.file
Subclasses ofThrowable injava.nio.file Modifier and Type Class Description class
AccessDeniedException
Checked exception thrown when a file system operation is denied, typically due to a file permission or other access check.class
AtomicMoveNotSupportedException
Checked exception thrown when a file cannot be moved as an atomic file system operation.class
ClosedDirectoryStreamException
Unchecked exception thrown when an attempt is made to invoke an operation on a directory stream that is closed.class
ClosedFileSystemException
Unchecked exception thrown when an attempt is made to invoke an operation on a file and the file system is closed.class
ClosedWatchServiceException
Unchecked exception thrown when an attempt is made to invoke an operation on a watch service that is closed.class
DirectoryIteratorException
Runtime exception thrown if an I/O error is encountered when iterating over the entries in a directory.class
DirectoryNotEmptyException
Checked exception thrown when a file system operation fails because a directory is not empty.class
FileAlreadyExistsException
Checked exception thrown when an attempt is made to create a file or directory and a file of that name already exists.class
FileSystemAlreadyExistsException
Runtime exception thrown when an attempt is made to create a file system that already exists.class
FileSystemException
Thrown when a file system operation fails on one or two files.class
FileSystemLoopException
Checked exception thrown when a file system loop, or cycle, is encountered.class
FileSystemNotFoundException
Runtime exception thrown when a file system cannot be found.class
InvalidPathException
Unchecked exception thrown when path string cannot be converted into aPath
because the path string contains invalid characters, or the path string is invalid for other file system specific reasons.class
NoSuchFileException
Checked exception thrown when an attempt is made to access a file that does not exist.class
NotDirectoryException
Checked exception thrown when a file system operation, intended for a directory, fails because the file is not a directory.class
NotLinkException
Checked exception thrown when a file system operation fails because a file is not a symbolic link.class
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.class
ProviderNotFoundException
Runtime exception thrown when a provider of the required type cannot be found.class
ReadOnlyFileSystemException
Unchecked exception thrown when an attempt is made to update an object associated with aread-only
FileSystem
.Uses ofThrowable injava.nio.file.attribute
Subclasses ofThrowable injava.nio.file.attribute Modifier and Type Class Description class
UserPrincipalNotFoundException
Checked exception thrown when a lookup ofUserPrincipal
fails because the principal does not exist.Uses ofThrowable injava.rmi
Subclasses ofThrowable injava.rmi Modifier and Type Class Description class
AccessException
AnAccessException
is thrown by certain methods of thejava.rmi.Naming
class (specificallybind
,rebind
, andunbind
) and methods of thejava.rmi.activation.ActivationSystem
interface to indicate that the caller does not have permission to perform the action requested by the method call.class
AlreadyBoundException
AnAlreadyBoundException
is thrown if an attempt is made to bind an object in the registry to a name that already has an associated binding.class
ConnectException
AConnectException
is thrown if a connection is refused to the remote host for a remote method call.class
ConnectIOException
AConnectIOException
is thrown if anIOException
occurs while making a connection to the remote host for a remote method call.class
MarshalException
AMarshalException
is thrown if ajava.io.IOException
occurs while marshalling the remote call header, arguments or return value for a remote method call.class
NoSuchObjectException
ANoSuchObjectException
is thrown if an attempt is made to invoke a method on an object that no longer exists in the remote virtual machine.class
NotBoundException
ANotBoundException
is thrown if an attempt is made to lookup or unbind in the registry a name that has no associated binding.class
RemoteException
ARemoteException
is the common superclass for a number of communication-related exceptions that may occur during the execution of a remote method call.class
RMISecurityException
Deprecated.UseSecurityException
instead.class
ServerError
AServerError
is thrown as a result of a remote method invocation when anError
is thrown while processing the invocation on the server, either while unmarshalling the arguments, executing the remote method itself, or marshalling the return value.class
ServerException
AServerException
is thrown as a result of a remote method invocation when aRemoteException
is thrown while processing the invocation on the server, either while unmarshalling the arguments or executing the remote method itself.class
ServerRuntimeException
Deprecated.no replacementclass
StubNotFoundException
AStubNotFoundException
is thrown if a valid stub class could not be found for a remote object when it is exported.class
UnexpectedException
AnUnexpectedException
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 thethrows
clause of the method in the remote interface.class
UnknownHostException
AnUnknownHostException
is thrown if ajava.net.UnknownHostException
occurs while creating a connection to the remote host for a remote method call.class
UnmarshalException
AnUnmarshalException
can be thrown while unmarshalling the parameters or results of a remote method call if any of the following conditions occur: if an exception occurs while unmarshalling the call header if the protocol for the return value is invalid if ajava.io.IOException
occurs unmarshalling parameters (on the server side) or the return value (on the client side).Fields injava.rmi declared asThrowable Modifier and Type Field Description Throwable
RemoteException. detail
The cause of the remote exception.Methods injava.rmi that returnThrowable Modifier and Type Method Description Throwable
RemoteException. getCause()
Returns the cause of this exception.Constructors injava.rmi with parameters of typeThrowable Constructor Description RemoteException(String s,Throwable cause)
Constructs aRemoteException
with the specified detail message and cause.Uses ofThrowable injava.rmi.activation
Subclasses ofThrowable injava.rmi.activation Modifier and Type Class Description class
ActivateFailedException
This exception is thrown by the RMI runtime when activation fails during a remote call to an activatable object.class
ActivationException
General exception used by the activation interfaces.class
UnknownGroupException
AnUnknownGroupException
is thrown by methods of classes and interfaces in thejava.rmi.activation
package when theActivationGroupID
parameter to the method is determined to be invalid, i.e., not known by theActivationSystem
.class
UnknownObjectException
AnUnknownObjectException
is thrown by methods of classes and interfaces in thejava.rmi.activation
package when theActivationID
parameter to the method is determined to be invalid.Fields injava.rmi.activation declared asThrowable Modifier and Type Field Description Throwable
ActivationException. detail
The cause of the activation exception.Methods injava.rmi.activation that returnThrowable Modifier and Type Method Description Throwable
ActivationException. getCause()
Returns the cause of this exception.Constructors injava.rmi.activation with parameters of typeThrowable Constructor Description ActivationException(String s,Throwable cause)
Constructs anActivationException
with the specified detail message and cause.Uses ofThrowable injava.rmi.server
Subclasses ofThrowable injava.rmi.server Modifier and Type Class Description class
ExportException
AnExportException
is aRemoteException
thrown if an attempt to export a remote object fails.class
ServerCloneException
AServerCloneException
is thrown if a remote exception occurs during the cloning of aUnicastRemoteObject
.class
ServerNotActiveException
AnServerNotActiveException
is anException
thrown during a call toRemoteServer.getClientHost
if the getClientHost method is called outside of servicing a remote method call.class
SkeletonMismatchException
Deprecated.no replacement.class
SkeletonNotFoundException
Deprecated.no replacement.class
SocketSecurityException
Deprecated.This class is obsolete.Methods injava.rmi.server that returnThrowable Modifier and Type Method Description Throwable
ServerCloneException. getCause()
Returns the cause of this exception.Methods injava.rmi.server that throwThrowable Modifier and Type Method Description Object
RemoteObjectInvocationHandler. invoke(Object proxy,Method method,Object[] args)
Processes a method invocation made on the encapsulating proxy instance,proxy
, and returns the result.Uses ofThrowable injava.security
Subclasses ofThrowable injava.security Modifier and Type Class Description 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
TheGeneralSecurityException
class is a generic security exception class that provides type safety for all the security-related exception classes that extend from it.class
InvalidAlgorithmParameterException
This is the exception for invalid or inappropriate algorithm parameters.class
InvalidKeyException
This is the exception for invalid Keys (invalid encoding, wrong length, uninitialized, etc).class
InvalidParameterException
This exception, designed for use by the JCA/JCE engine classes, is thrown when an invalid parameter is passed to a method.class
KeyException
This is the basic key exception.class
KeyManagementException
This is the general key management exception for all operations dealing with key management.class
KeyStoreException
This is the generic KeyStore exception.class
NoSuchAlgorithmException
This exception is thrown when a particular cryptographic algorithm is requested but is not available in the environment.class
NoSuchProviderException
This exception is thrown when a particular security provider is requested but is not available in the environment.class
PrivilegedActionException
This exception is thrown bydoPrivileged(PrivilegedExceptionAction)
anddoPrivileged(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 or unrecoverable internal errors), which may be subclassed by Providers to throw specialized, provider-specific runtime errors.class
SignatureException
This is the generic Signature exception.class
UnrecoverableEntryException
This exception is thrown if an entry in the keystore cannot be recovered.class
UnrecoverableKeyException
This exception is thrown if a key in the keystore cannot be recovered.Methods injava.security that returnThrowable Modifier and Type Method Description Throwable
PrivilegedActionException. getCause()
Returns the cause of this exception (the exception thrown by the privileged computation that resulted in thisPrivilegedActionException
).Constructors injava.security with parameters of typeThrowable Constructor Description DigestException(String message,Throwable cause)
Creates aDigestException
with the specified detail message and cause.DigestException(Throwable cause)
Creates aDigestException
with the specified cause and a detail message of(cause==null ? null : cause.toString())
(which typically contains the class and detail message ofcause
).GeneralSecurityException(String message,Throwable cause)
Creates aGeneralSecurityException
with the specified detail message and cause.GeneralSecurityException(Throwable cause)
Creates aGeneralSecurityException
with the specified cause and a detail message of(cause==null ? null : cause.toString())
(which typically contains the class and detail message ofcause
).InvalidAlgorithmParameterException(String message,Throwable cause)
Creates anInvalidAlgorithmParameterException
with the specified detail message and cause.InvalidAlgorithmParameterException(Throwable cause)
Creates anInvalidAlgorithmParameterException
with the specified cause and a detail message of(cause==null ? null : cause.toString())
(which typically contains the class and detail message ofcause
).InvalidKeyException(String message,Throwable cause)
Creates anInvalidKeyException
with the specified detail message and cause.InvalidKeyException(Throwable cause)
Creates anInvalidKeyException
with the specified cause and a detail message of(cause==null ? null : cause.toString())
(which typically contains the class and detail message ofcause
).KeyException(String message,Throwable cause)
Creates aKeyException
with the specified detail message and cause.KeyException(Throwable cause)
Creates aKeyException
with the specified cause and a detail message of(cause==null ? null : cause.toString())
(which typically contains the class and detail message ofcause
).KeyManagementException(String message,Throwable cause)
Creates aKeyManagementException
with the specified detail message and cause.KeyManagementException(Throwable cause)
Creates aKeyManagementException
with the specified cause and a detail message of(cause==null ? null : cause.toString())
(which typically contains the class and detail message ofcause
).KeyStoreException(String message,Throwable cause)
Creates aKeyStoreException
with the specified detail message and cause.KeyStoreException(Throwable cause)
Creates aKeyStoreException
with the specified cause and a detail message of(cause==null ? null : cause.toString())
(which typically contains the class and detail message ofcause
).NoSuchAlgorithmException(String message,Throwable cause)
Creates aNoSuchAlgorithmException
with the specified detail message and cause.NoSuchAlgorithmException(Throwable cause)
Creates aNoSuchAlgorithmException
with the specified cause and a detail message of(cause==null ? null : cause.toString())
(which typically contains the class and detail message ofcause
).ProviderException(String message,Throwable cause)
Creates aProviderException
with the specified detail message and cause.ProviderException(Throwable cause)
Creates aProviderException
with the specified cause and a detail message of(cause==null ? null : cause.toString())
(which typically contains the class and detail message ofcause
).SignatureException(String message,Throwable cause)
Creates aSignatureException
with the specified detail message and cause.SignatureException(Throwable cause)
Creates aSignatureException
with the specified cause and a detail message of(cause==null ? null : cause.toString())
(which typically contains the class and detail message ofcause
).Uses ofThrowable injava.security.acl
Subclasses ofThrowable injava.security.acl Modifier and Type Class Description class
AclNotFoundException
Deprecated, for removal: This API element is subject to removal in a future version.This class is deprecated and subject to removal in a future version of Java SE.class
LastOwnerException
Deprecated, for removal: This API element is subject to removal in a future version.This class is deprecated and subject to removal in a future version of Java SE.class
NotOwnerException
Deprecated, for removal: This API element is subject to removal in a future version.This class is deprecated and subject to removal in a future version of Java SE.Uses ofThrowable injava.security.cert
Subclasses ofThrowable injava.security.cert Modifier and Type Class Description 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
CertificateRevokedException
An exception that indicates an X.509 certificate is revoked.class
CertPathBuilderException
An exception indicating one of a variety of problems encountered when building a certification path with aCertPathBuilder
.class
CertPathValidatorException
An exception indicating one of a variety of problems encountered when validating a certification path.class
CertStoreException
An exception indicating one of a variety of problems retrieving certificates and CRLs from aCertStore
.class
CRLException
CRL (Certificate Revocation List) Exception.Constructors injava.security.cert with parameters of typeThrowable Constructor Description CertificateEncodingException(String message,Throwable cause)
Creates aCertificateEncodingException
with the specified detail message and cause.CertificateEncodingException(Throwable cause)
Creates aCertificateEncodingException
with the specified cause and a detail message of(cause==null ? null : cause.toString())
(which typically contains the class and detail message ofcause
).CertificateException(String message,Throwable cause)
Creates aCertificateException
with the specified detail message and cause.CertificateException(Throwable cause)
Creates aCertificateException
with the specified cause and a detail message of(cause==null ? null : cause.toString())
(which typically contains the class and detail message ofcause
).CertificateParsingException(String message,Throwable cause)
Creates aCertificateParsingException
with the specified detail message and cause.CertificateParsingException(Throwable cause)
Creates aCertificateParsingException
with the specified cause and a detail message of(cause==null ? null : cause.toString())
(which typically contains the class and detail message ofcause
).CertPathBuilderException(String msg,Throwable cause)
Creates aCertPathBuilderException
with the specified detail message and cause.CertPathBuilderException(Throwable cause)
Creates aCertPathBuilderException
that wraps the specified throwable.CertPathValidatorException(String msg,Throwable cause)
Creates aCertPathValidatorException
with the specified detail message and cause.CertPathValidatorException(String msg,Throwable cause,CertPath certPath, int index)
Creates aCertPathValidatorException
with the specified detail message, cause, certification path, and index.CertPathValidatorException(String msg,Throwable cause,CertPath certPath, int index,CertPathValidatorException.Reason reason)
Creates aCertPathValidatorException
with the specified detail message, cause, certification path, index, and reason.CertPathValidatorException(Throwable cause)
Creates aCertPathValidatorException
that wraps the specified throwable.CertStoreException(String msg,Throwable cause)
Creates aCertStoreException
with the specified detail message and cause.CertStoreException(Throwable cause)
Creates aCertStoreException
that wraps the specified throwable.CRLException(String message,Throwable cause)
Creates aCRLException
with the specified detail message and cause.CRLException(Throwable cause)
Creates aCRLException
with the specified cause and a detail message of(cause==null ? null : cause.toString())
(which typically contains the class and detail message ofcause
).Uses ofThrowable injava.security.spec
Subclasses ofThrowable injava.security.spec Modifier and Type Class Description class
InvalidKeySpecException
This is the exception for invalid key specifications.class
InvalidParameterSpecException
This is the exception for invalid parameter specifications.Constructors injava.security.spec with parameters of typeThrowable Constructor Description InvalidKeySpecException(String message,Throwable cause)
Creates anInvalidKeySpecException
with the specified detail message and cause.InvalidKeySpecException(Throwable cause)
Creates anInvalidKeySpecException
with the specified cause and a detail message of(cause==null ? null : cause.toString())
(which typically contains the class and detail message ofcause
).Uses ofThrowable injava.sql
Subclasses ofThrowable injava.sql Modifier and Type Class Description class
BatchUpdateException
The subclass ofSQLException
thrown when an error occurs during a batch update operation.class
DataTruncation
An exception thrown as aDataTruncation
exception (on writes) or reported as aDataTruncation
warning (on reads) when a data values is unexpectedly truncated for reasons other than its having exceededMaxFieldSize
.class
SQLClientInfoException
The subclass ofSQLException
is thrown when one or more client info properties could not be set on aConnection
.class
SQLDataException
The subclass ofSQLException
thrown when the SQLState class value is '22', or under vendor-specified conditions.class
SQLException
An exception that provides information on a database access error or other errors.class
SQLFeatureNotSupportedException
The subclass ofSQLException
thrown when the SQLState class value is '0A' ( the value is 'zero' A).class
SQLIntegrityConstraintViolationException
The subclass ofSQLException
thrown when the SQLState class value is '23', or under vendor-specified conditions.class
SQLInvalidAuthorizationSpecException
The subclass ofSQLException
thrown when the SQLState class value is '28', or under vendor-specified conditions.class
SQLNonTransientConnectionException
The subclass ofSQLException
thrown for the SQLState class value '08', or under vendor-specified conditions.class
SQLNonTransientException
The subclass ofSQLException
thrown when an instance where a retry of the same operation would fail unless the cause of theSQLException
is corrected.class
SQLRecoverableException
The subclass ofSQLException
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.class
SQLSyntaxErrorException
The subclass ofSQLException
thrown when the SQLState class value is '42', or under vendor-specified conditions.class
SQLTimeoutException
The subclass ofSQLException
thrown when the timeout specified byStatement.setQueryTimeout
,DriverManager.setLoginTimeout
,DataSource.setLoginTimeout
,XADataSource.setLoginTimeout
has expired.class
SQLTransactionRollbackException
The subclass ofSQLException
thrown when the SQLState class value is '40', or under vendor-specified conditions.class
SQLTransientConnectionException
The subclass ofSQLException
for the SQLState class value '08', or under vendor-specified conditions.class
SQLTransientException
The subclass ofSQLException
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.class
SQLWarning
An exception that provides information on database access warnings.Methods injava.sql that return types with arguments of typeThrowable Modifier and Type Method Description Iterator<Throwable>
SQLException. iterator()
Returns an iterator over the chained SQLExceptions.Constructors injava.sql with parameters of typeThrowable Constructor Description BatchUpdateException(int[] updateCounts,Throwable cause)
Constructs aBatchUpdateException
object initialized with a givencause
andupdateCounts
.BatchUpdateException(String reason, int[] updateCounts,Throwable cause)
Constructs aBatchUpdateException
object initialized with a givenreason
,cause
andupdateCounts
.BatchUpdateException(String reason,String SQLState, int[] updateCounts,Throwable cause)
Constructs aBatchUpdateException
object initialized with a givenreason
,SQLState
,cause
, andupdateCounts
.BatchUpdateException(String reason,String SQLState, int vendorCode, int[] updateCounts,Throwable cause)
Constructs aBatchUpdateException
object initialized with a givenreason
,SQLState
,vendorCode
cause
andupdateCounts
.BatchUpdateException(String reason,String SQLState, int vendorCode, long[] updateCounts,Throwable cause)
Constructs aBatchUpdateException
object initialized with a givenreason
,SQLState
,vendorCode
cause
andupdateCounts
.BatchUpdateException(Throwable cause)
Constructs aBatchUpdateException
object initialized with a givencause
.DataTruncation(int index, boolean parameter, boolean read, int dataSize, int transferSize,Throwable cause)
Creates aDataTruncation
object with the SQLState initialized to 01004 whenread
is set totrue
and 22001 whenread
is set tofalse
, the reason set to "Data truncation", the vendor code set to 0, and the other fields set to the given values.SQLClientInfoException(String reason,String SQLState, int vendorCode,Map<String,ClientInfoStatus> failedProperties,Throwable cause)
Constructs aSQLClientInfoException
object initialized with a givenreason
,SQLState
,cause
,vendorCode
andfailedProperties
.SQLClientInfoException(String reason,String SQLState,Map<String,ClientInfoStatus> failedProperties,Throwable cause)
Constructs aSQLClientInfoException
object initialized with a givenreason
,SQLState
,cause
andfailedProperties
.SQLClientInfoException(String reason,Map<String,ClientInfoStatus> failedProperties,Throwable cause)
Constructs aSQLClientInfoException
object initialized with a givenreason
,cause
andfailedProperties
.SQLClientInfoException(Map<String,ClientInfoStatus> failedProperties,Throwable cause)
Constructs aSQLClientInfoException
object initialized with a givencause
andfailedProperties
.SQLDataException(String reason,String SQLState, int vendorCode,Throwable cause)
Constructs aSQLDataException
object with a givenreason
,SQLState
,vendorCode
andcause
.SQLDataException(String reason,String SQLState,Throwable cause)
Constructs aSQLDataException
object with a givenreason
,SQLState
andcause
.SQLDataException(String reason,Throwable cause)
Constructs aSQLDataException
object with a givenreason
andcause
.SQLDataException(Throwable cause)
Constructs aSQLDataException
object with a givencause
.SQLException(String reason,String sqlState, int vendorCode,Throwable cause)
Constructs aSQLException
object with a givenreason
,SQLState
,vendorCode
andcause
.SQLException(String reason,String sqlState,Throwable cause)
Constructs aSQLException
object with a givenreason
,SQLState
andcause
.SQLException(String reason,Throwable cause)
Constructs aSQLException
object with a givenreason
andcause
.SQLException(Throwable cause)
Constructs aSQLException
object with a givencause
.SQLFeatureNotSupportedException(String reason,String SQLState, int vendorCode,Throwable cause)
Constructs aSQLFeatureNotSupportedException
object with a givenreason
,SQLState
,vendorCode
andcause
.SQLFeatureNotSupportedException(String reason,String SQLState,Throwable cause)
Constructs aSQLFeatureNotSupportedException
object with a givenreason
,SQLState
andcause
.SQLFeatureNotSupportedException(String reason,Throwable cause)
Constructs aSQLFeatureNotSupportedException
object with a givenreason
andcause
.SQLFeatureNotSupportedException(Throwable cause)
Constructs aSQLFeatureNotSupportedException
object with a givencause
.SQLIntegrityConstraintViolationException(String reason,String SQLState, int vendorCode,Throwable cause)
Constructs aSQLIntegrityConstraintViolationException
object with a givenreason
,SQLState
,vendorCode
andcause
.SQLIntegrityConstraintViolationException(String reason,String SQLState,Throwable cause)
Constructs aSQLIntegrityConstraintViolationException
object with a givenreason
,SQLState
andcause
.SQLIntegrityConstraintViolationException(String reason,Throwable cause)
Constructs aSQLIntegrityConstraintViolationException
object with a givenreason
andcause
.SQLIntegrityConstraintViolationException(Throwable cause)
Constructs anSQLIntegrityConstraintViolationException
object with a givencause
.SQLInvalidAuthorizationSpecException(String reason,String SQLState, int vendorCode,Throwable cause)
Constructs aSQLInvalidAuthorizationSpecException
object with a givenreason
,SQLState
,vendorCode
andcause
.SQLInvalidAuthorizationSpecException(String reason,String SQLState,Throwable cause)
Constructs aSQLInvalidAuthorizationSpecException
object with a givenreason
,SQLState
andcause
.SQLInvalidAuthorizationSpecException(String reason,Throwable cause)
Constructs aSQLInvalidAuthorizationSpecException
object with a givenreason
andcause
.SQLInvalidAuthorizationSpecException(Throwable cause)
Constructs aSQLInvalidAuthorizationSpecException
object with a givencause
.SQLNonTransientConnectionException(String reason,String SQLState, int vendorCode,Throwable cause)
Constructs aSQLNonTransientConnectionException
object with a givenreason
,SQLState
,vendorCode
andcause
.SQLNonTransientConnectionException(String reason,String SQLState,Throwable cause)
Constructs aSQLNonTransientConnectionException
object with a givenreason
,SQLState
andcause
.SQLNonTransientConnectionException(String reason,Throwable cause)
Constructs aSQLTransientException
object with a givenreason
andcause
.SQLNonTransientConnectionException(Throwable cause)
Constructs aSQLNonTransientConnectionException
object with a givencause
.SQLNonTransientException(String reason,String SQLState, int vendorCode,Throwable cause)
Constructs aSQLNonTransientException
object with a givenreason
,SQLState
,vendorCode
andcause
.SQLNonTransientException(String reason,String SQLState,Throwable cause)
Constructs aSQLNonTransientException
object with a givenreason
,SQLState
andcause
.SQLNonTransientException(String reason,Throwable cause)
Constructs aSQLTransientException
object with a givenreason
andcause
.SQLNonTransientException(Throwable cause)
Constructs aSQLNonTransientException
object with a givencause
.SQLRecoverableException(String reason,String SQLState, int vendorCode,Throwable cause)
Constructs aSQLRecoverableException
object with a givenreason
,SQLState
,vendorCode
andcause
.SQLRecoverableException(String reason,String SQLState,Throwable cause)
Constructs aSQLRecoverableException
object with a givenreason
,SQLState
andcause
.SQLRecoverableException(String reason,Throwable cause)
Constructs aSQLRecoverableException
object with a givenreason
andcause
.SQLRecoverableException(Throwable cause)
Constructs aSQLRecoverableException
object with a givencause
.SQLSyntaxErrorException(String reason,String SQLState, int vendorCode,Throwable cause)
Constructs aSQLSyntaxErrorException
object with a givenreason
,SQLState
,vendorCode
andcause
.SQLSyntaxErrorException(String reason,String SQLState,Throwable cause)
Constructs aSQLSyntaxErrorException
object with a givenreason
,SQLState
andcause
.SQLSyntaxErrorException(String reason,Throwable cause)
Constructs aSQLSyntaxErrorException
object with a givenreason
andcause
.SQLSyntaxErrorException(Throwable cause)
Constructs aSQLSyntaxErrorException
object with a givencause
.SQLTimeoutException(String reason,String SQLState, int vendorCode,Throwable cause)
Constructs aSQLTimeoutException
object with a givenreason
,SQLState
,vendorCode
andcause
.SQLTimeoutException(String reason,String SQLState,Throwable cause)
Constructs aSQLTimeoutException
object with a givenreason
,SQLState
andcause
.SQLTimeoutException(String reason,Throwable cause)
Constructs aSQLTimeoutException
object with a givenreason
andcause
.SQLTimeoutException(Throwable cause)
Constructs aSQLTimeoutException
object with a givencause
.SQLTransactionRollbackException(String reason,String SQLState, int vendorCode,Throwable cause)
Constructs aSQLTransactionRollbackException
object with a givenreason
,SQLState
,vendorCode
andcause
.SQLTransactionRollbackException(String reason,String SQLState,Throwable cause)
Constructs aSQLTransactionRollbackException
object with a givenreason
,SQLState
andcause
.SQLTransactionRollbackException(String reason,Throwable cause)
Constructs aSQLTransactionRollbackException
object with a givenreason
andcause
.SQLTransactionRollbackException(Throwable cause)
Constructs aSQLTransactionRollbackException
object with a givencause
.SQLTransientConnectionException(String reason,String SQLState, int vendorCode,Throwable cause)
Constructs aSQLTransientConnectionException
object with a givenreason
,SQLState
,vendorCode
andcause
.SQLTransientConnectionException(String reason,String SQLState,Throwable cause)
Constructs aSQLTransientConnectionException
object with a givenreason
,SQLState
andcause
.SQLTransientConnectionException(String reason,Throwable cause)
Constructs aSQLTransientConnectionException
object with a givenreason
andcause
.SQLTransientConnectionException(Throwable cause)
Constructs aSQLTransientConnectionException
object with a givencause
.SQLTransientException(String reason,String SQLState, int vendorCode,Throwable cause)
Constructs aSQLTransientException
object with a givenreason
,SQLState
,vendorCode
andcause
.SQLTransientException(String reason,String SQLState,Throwable cause)
Constructs aSQLTransientException
object with a givenreason
,SQLState
andcause
.SQLTransientException(String reason,Throwable cause)
Constructs aSQLTransientException
object with a givenreason
andcause
.SQLTransientException(Throwable cause)
Constructs aSQLTransientException
object with a givencause
.SQLWarning(String reason,String SQLState, int vendorCode,Throwable cause)
Constructs aSQLWarning
object with a givenreason
,SQLState
,vendorCode
andcause
.SQLWarning(String reason,String SQLState,Throwable cause)
Constructs aSQLWarning
object with a givenreason
,SQLState
andcause
.SQLWarning(String reason,Throwable cause)
Constructs aSQLWarning
object with a givenreason
andcause
.SQLWarning(Throwable cause)
Constructs aSQLWarning
object with a givencause
.Uses ofThrowable injava.text
Subclasses ofThrowable injava.text Modifier and Type Class Description class
ParseException
Signals that an error has been reached unexpectedly while parsing.Uses ofThrowable injava.time
Subclasses ofThrowable injava.time Modifier and Type Class Description class
DateTimeException
Exception used to indicate a problem while calculating a date-time.Constructors injava.time with parameters of typeThrowable Constructor Description DateTimeException(String message,Throwable cause)
Constructs a new date-time exception with the specified message and cause.Uses ofThrowable injava.time.format
Subclasses ofThrowable injava.time.format Modifier and Type Class Description class
DateTimeParseException
An exception thrown when an error occurs during parsing.Constructors injava.time.format with parameters of typeThrowable Constructor Description DateTimeParseException(String message,CharSequence parsedData, int errorIndex,Throwable cause)
Constructs a new exception with the specified message and cause.Uses ofThrowable injava.time.temporal
Subclasses ofThrowable injava.time.temporal Modifier and Type Class Description class
UnsupportedTemporalTypeException
UnsupportedTemporalTypeException indicates that a ChronoField or ChronoUnit is not supported for a Temporal class.Constructors injava.time.temporal with parameters of typeThrowable Constructor Description UnsupportedTemporalTypeException(String message,Throwable cause)
Constructs a new UnsupportedTemporalTypeException with the specified message and cause.Uses ofThrowable injava.time.zone
Subclasses ofThrowable injava.time.zone Modifier and Type Class Description class
ZoneRulesException
Thrown to indicate a problem with time-zone configuration.Constructors injava.time.zone with parameters of typeThrowable Constructor Description ZoneRulesException(String message,Throwable cause)
Constructs a new date-time exception with the specified message and cause.Uses ofThrowable injava.util
Subclasses ofThrowable injava.util Modifier and Type Class 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
DuplicateFormatFlagsException
Unchecked exception thrown when duplicate flags are provided in the format specifier.class
EmptyStackException
Thrown by methods in theStack
class to indicate that the stack is empty.class
FormatFlagsConversionMismatchException
Unchecked exception thrown when a conversion and flag are incompatible.class
FormatterClosedException
Unchecked exception thrown when the formatter has been closed.class
IllegalFormatCodePointException
Unchecked exception thrown when a character with an invalid Unicode code point as defined byCharacter.isValidCodePoint(int)
is passed to theFormatter
.class
IllegalFormatConversionException
Unchecked exception thrown when the argument corresponding to the format specifier is of an incompatible type.class
IllegalFormatException
Unchecked exception thrown when a format string contains an illegal syntax or a format specifier that is incompatible with the given arguments.class
IllegalFormatFlagsException
Unchecked exception thrown when an illegal combination flags is given.class
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.class
IllegalFormatWidthException
Unchecked exception thrown when the format width is a negative value other than-1
or is otherwise unsupported.class
IllformedLocaleException
Thrown by methods inLocale
andLocale.Builder
to indicate that an argument is not a well-formed BCP 47 tag.class
InputMismatchException
Thrown by aScanner
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.class
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 theProperties
specification.class
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.class
MissingFormatWidthException
Unchecked exception thrown when the format width is required.class
MissingResourceException
Signals that a resource is missing.class
NoSuchElementException
Thrown by various accessor methods to indicate that the element being requested does not exist.class
ServiceConfigurationError
Error thrown when something goes wrong while locating, loading, or instantiating a service provider.class
TooManyListenersException
TheTooManyListenersException
Exception is used as part of the Java Event model to annotate and implement a unicast special case of a multicast Event Source.class
UnknownFormatConversionException
Unchecked exception thrown when an unknown conversion is given.class
UnknownFormatFlagsException
Unchecked exception thrown when an unknown flag is given.Methods injava.util with type parameters of typeThrowable Modifier and Type Method Description <X extendsThrowable>
TOptional. orElseThrow(Supplier<? extends X> exceptionSupplier)
If a value is present, returns the value, otherwise throws an exception produced by the exception supplying function.<X extendsThrowable>
doubleOptionalDouble. orElseThrow(Supplier<? extends X> exceptionSupplier)
If a value is present, returns the value, otherwise throws an exception produced by the exception supplying function.<X extendsThrowable>
intOptionalInt. orElseThrow(Supplier<? extends X> exceptionSupplier)
If a value is present, returns the value, otherwise throws an exception produced by the exception supplying function.<X extendsThrowable>
longOptionalLong. orElseThrow(Supplier<? extends X> exceptionSupplier)
If a value is present, returns the value, otherwise throws an exception produced by the exception supplying function.Methods injava.util that throwThrowable Modifier and Type Method Description <X extendsThrowable>
TOptional. orElseThrow(Supplier<? extends X> exceptionSupplier)
If a value is present, returns the value, otherwise throws an exception produced by the exception supplying function.<X extendsThrowable>
doubleOptionalDouble. orElseThrow(Supplier<? extends X> exceptionSupplier)
If a value is present, returns the value, otherwise throws an exception produced by the exception supplying function.<X extendsThrowable>
intOptionalInt. orElseThrow(Supplier<? extends X> exceptionSupplier)
If a value is present, returns the value, otherwise throws an exception produced by the exception supplying function.<X extendsThrowable>
longOptionalLong. orElseThrow(Supplier<? extends X> exceptionSupplier)
If a value is present, returns the value, otherwise throws an exception produced by the exception supplying function.Constructors injava.util with parameters of typeThrowable Constructor Description ConcurrentModificationException(String message,Throwable cause)
Constructs a new exception with the specified detail message and cause.ConcurrentModificationException(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 ofcause
.InvalidPropertiesFormatException(Throwable cause)
Constructs an InvalidPropertiesFormatException with the specified cause.ServiceConfigurationError(String msg,Throwable cause)
Constructs a new instance with the specified message and cause.Uses ofThrowable injava.util.concurrent
Subclasses ofThrowable injava.util.concurrent Modifier and Type Class Description class
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.class
CancellationException
Exception indicating that the result of a value-producing task, such as aFutureTask
, cannot be retrieved because the task was cancelled.class
CompletionException
Exception thrown when an error or other exception is encountered in the course of completing a result or task.class
ExecutionException
Exception thrown when attempting to retrieve the result of a task that aborted by throwing an exception.class
RejectedExecutionException
Exception thrown by anExecutor
when a task cannot be accepted for execution.class
TimeoutException
Exception thrown when a blocking operation times out.Methods injava.util.concurrent that returnThrowable Modifier and Type Method Description Throwable
SubmissionPublisher. getClosedException()
Returns the exception associated withcloseExceptionally
, or null if not closed or if closed normally.Throwable
ForkJoinTask. getException()
Returns the exception thrown by the base computation, or aCancellationException
if cancelled, ornull
if none or if the method has not yet completed.Methods injava.util.concurrent with parameters of typeThrowable Modifier and Type Method Description protected void
ThreadPoolExecutor. afterExecute(Runnable r,Throwable t)
Method invoked upon completion of execution of the given Runnable.void
SubmissionPublisher. closeExceptionally(Throwable error)
Unless already closed, issuesonError
signals to current subscribers with the given error, and disallows subsequent attempts to publish.boolean
CompletableFuture. completeExceptionally(Throwable ex)
If not already completed, causes invocations ofCompletableFuture.get()
and related methods to throw the given exception.void
ForkJoinTask. completeExceptionally(Throwable ex)
Completes this task abnormally, and if not already aborted or cancelled, causes it to throw the given exception uponjoin
and related operations.static <U> CompletableFuture<U>
CompletableFuture. failedFuture(Throwable ex)
Returns a new CompletableFuture that is already completed exceptionally with the given exception.static <U> CompletionStage<U>
CompletableFuture. failedStage(Throwable ex)
Returns a new CompletionStage that is already completed exceptionally with the given exception and supports only those methods in interfaceCompletionStage
.void
CompletableFuture. obtrudeException(Throwable ex)
Forcibly causes subsequent invocations of methodCompletableFuture.get()
and related methods to throw the given exception, whether or not already completed.void
Flow.Subscriber. onError(Throwable throwable)
Method invoked upon an unrecoverable error encountered by a Publisher or Subscription, after which no other Subscriber methods are invoked by the Subscription.boolean
CountedCompleter. onExceptionalCompletion(Throwable ex,CountedCompleter<?> caller)
Performs an action when methodForkJoinTask.completeExceptionally(Throwable)
is invoked or methodCountedCompleter.compute()
throws an exception, and this task has not already otherwise completed normally.protected void
ForkJoinWorkerThread. onTermination(Throwable exception)
Performs cleanup associated with termination of this worker thread.protected void
FutureTask. setException(Throwable t)
Causes this future to report anExecutionException
with the given throwable as its cause, unless this future has already been set or has been cancelled.Method parameters injava.util.concurrent with type arguments of typeThrowable Modifier and Type Method Description CompletableFuture<T>
CompletableFuture. exceptionally(Function<Throwable,? extendsT> fn)
Returns a new CompletableFuture that is completed when this CompletableFuture completes, with the result of the given function of the exception triggering this CompletableFuture's completion when it completes exceptionally; otherwise, if this CompletableFuture completes normally, then the returned CompletableFuture also completes normally with the same value.CompletionStage<T>
CompletionStage. exceptionally(Function<Throwable,? extendsT> fn)
Returns a new CompletionStage that, when this stage completes exceptionally, is executed with this stage's exception as the argument to the supplied function.<U> CompletionStage<U>
CompletionStage. handle(BiFunction<? superT,Throwable,? extends U> fn)
Returns a new CompletionStage that, when this stage completes either normally or exceptionally, is executed with this stage's result and exception as arguments to the supplied function.<U> CompletionStage<U>
CompletionStage. handleAsync(BiFunction<? superT,Throwable,? extends U> fn)
Returns a new CompletionStage that, when this stage completes either normally or exceptionally, is executed using this stage's default asynchronous execution facility, with this stage's result and exception as arguments to the supplied function.<U> CompletionStage<U>
CompletionStage. handleAsync(BiFunction<? superT,Throwable,? extends U> fn,Executor executor)
Returns a new CompletionStage that, when this stage completes either normally or exceptionally, is executed using the supplied executor, with this stage's result and exception as arguments to the supplied function.CompletionStage<T>
CompletionStage. whenComplete(BiConsumer<? superT,? superThrowable> action)
Returns a new CompletionStage with the same result or exception as this stage, that executes the given action when this stage completes.CompletionStage<T>
CompletionStage. whenCompleteAsync(BiConsumer<? superT,? superThrowable> action)
Returns a new CompletionStage with the same result or exception as this stage, that executes the given action using this stage's default asynchronous execution facility when this stage completes.CompletionStage<T>
CompletionStage. whenCompleteAsync(BiConsumer<? superT,? superThrowable> action,Executor executor)
Returns a new CompletionStage with the same result or exception as this stage, that executes the given action using the supplied Executor when this stage completes.Constructors injava.util.concurrent with parameters of typeThrowable Constructor Description CompletionException(String message,Throwable cause)
Constructs aCompletionException
with the specified detail message and cause.CompletionException(Throwable cause)
Constructs aCompletionException
with the specified cause.ExecutionException(String message,Throwable cause)
Constructs anExecutionException
with the specified detail message and cause.ExecutionException(Throwable cause)
Constructs anExecutionException
with the specified cause.RejectedExecutionException(String message,Throwable cause)
Constructs aRejectedExecutionException
with the specified detail message and cause.RejectedExecutionException(Throwable cause)
Constructs aRejectedExecutionException
with the specified cause.Constructor parameters injava.util.concurrent with type arguments of typeThrowable Constructor Description SubmissionPublisher(Executor executor, int maxBufferCapacity,BiConsumer<? superFlow.Subscriber<? superT>,? superThrowable> handler)
Creates a new SubmissionPublisher using the given Executor for async delivery to subscribers, with the given maximum buffer size for each subscriber, and, if non-null, the given handler invoked when any Subscriber throws an exception in methodonNext
.Uses ofThrowable injava.util.jar
Subclasses ofThrowable injava.util.jar Modifier and Type Class Description class
JarException
Signals that an error of some sort has occurred while reading from or writing to a JAR file.Uses ofThrowable injava.util.logging
Methods injava.util.logging that returnThrowable Modifier and Type Method Description Throwable
LogRecord. getThrown()
Get any throwable associated with the log record.Methods injava.util.logging with parameters of typeThrowable Modifier and Type Method Description void
Logger. log(Level level,String msg,Throwable thrown)
Log a message, with associated Throwable information.void
Logger. log(Level level,Throwable thrown,Supplier<String> msgSupplier)
Log a lazily constructed message, with associated Throwable information.void
Logger. logp(Level level,String sourceClass,String sourceMethod,String msg,Throwable thrown)
Log a message, specifying source class and method, with associated Throwable information.void
Logger. logp(Level level,String sourceClass,String sourceMethod,Throwable thrown,Supplier<String> msgSupplier)
Log a lazily constructed message, specifying source class and method, with associated Throwable information.void
Logger. logrb(Level level,String sourceClass,String sourceMethod,String bundleName,String msg,Throwable thrown)
void
Logger. logrb(Level level,String sourceClass,String sourceMethod,ResourceBundle bundle,String msg,Throwable thrown)
Log a message, specifying source class, method, and resource bundle, with associated Throwable information.void
Logger. logrb(Level level,ResourceBundle bundle,String msg,Throwable thrown)
Log a message, specifying source class, method, and resource bundle, with associated Throwable information.void
LogRecord. setThrown(Throwable thrown)
Set a throwable associated with the log event.void
Logger. throwing(String sourceClass,String sourceMethod,Throwable thrown)
Log throwing an exception.Uses ofThrowable injava.util.prefs
Subclasses ofThrowable injava.util.prefs Modifier and Type Class Description class
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.class
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 thePreferences
specification.Constructors injava.util.prefs with parameters of typeThrowable Constructor Description BackingStoreException(Throwable cause)
Constructs a BackingStoreException with the specified cause.InvalidPreferencesFormatException(String message,Throwable cause)
Constructs an InvalidPreferencesFormatException with the specified detail message and cause.InvalidPreferencesFormatException(Throwable cause)
Constructs an InvalidPreferencesFormatException with the specified cause.Uses ofThrowable injava.util.regex
Subclasses ofThrowable injava.util.regex Modifier and Type Class Description class
PatternSyntaxException
Unchecked exception thrown to indicate a syntax error in a regular-expression pattern.Uses ofThrowable injava.util.zip
Subclasses ofThrowable injava.util.zip Modifier and Type Class Description class
DataFormatException
Signals that a data format error has occurred.class
ZipError
Signals that an unrecoverable error has occurred.class
ZipException
Signals that a Zip exception of some sort has occurred.Uses ofThrowable injavax.annotation.processing
Subclasses ofThrowable injavax.annotation.processing Modifier and Type Class Description class
FilerException
Indicates aFiler
detected an attempt to open a file that would violate the guarantees provided by theFiler
.Uses ofThrowable injavax.crypto
Subclasses ofThrowable injavax.crypto Modifier and Type Class Description class
AEADBadTagException
This exception is thrown when aCipher
operating in an AEAD mode (such as GCM/CCM) is unable to verify the supplied authentication tag.class
BadPaddingException
This exception is thrown when a particular padding mechanism is expected for the input data but the data is not padded properly.class
ExemptionMechanismException
This is the generic ExemptionMechanism exception.class
IllegalBlockSizeException
This exception is thrown when the length of data provided to a block cipher is incorrect, i.e., does not match the block size of the cipher.class
NoSuchPaddingException
This exception is thrown when a particular padding mechanism is requested but is not available in the environment.class
ShortBufferException
This exception is thrown when an output buffer provided by the user is too short to hold the operation result.Uses ofThrowable injavax.imageio
Subclasses ofThrowable injavax.imageio Modifier and Type Class Description class
IIOException
An exception class used for signaling run-time failure of reading and writing operations.Constructors injavax.imageio with parameters of typeThrowable Constructor Description IIOException(String message,Throwable cause)
Constructs anIIOException
with a given messageString
and aThrowable
that was its underlying cause.Uses ofThrowable injavax.imageio.metadata
Subclasses ofThrowable injavax.imageio.metadata Modifier and Type Class Description class
IIOInvalidTreeException
AnIIOInvalidTreeException
is thrown when an attempt by anIIOMetadata
object to parse a tree ofIIOMetadataNode
s fails.Constructors injavax.imageio.metadata with parameters of typeThrowable Constructor Description IIOInvalidTreeException(String message,Throwable cause,Node offendingNode)
Constructs anIIOInvalidTreeException
with a message string, a reference to an exception that caused this exception, and a reference to theNode
that caused the parsing error.Uses ofThrowable injavax.imageio.spi
Methods injavax.imageio.spi that throwThrowable Modifier and Type Method Description void
ServiceRegistry. finalize()
Deprecated.Thefinalize
method has been deprecated.Uses ofThrowable injavax.imageio.stream
Methods injavax.imageio.stream that throwThrowable Modifier and Type Method Description protected void
FileCacheImageInputStream. finalize()
Deprecated.Thefinalize
method has been deprecated.protected void
FileImageInputStream. finalize()
Deprecated.Thefinalize
method has been deprecated.protected void
FileImageOutputStream. finalize()
Deprecated.Thefinalize
method has been deprecated.protected void
ImageInputStreamImpl. finalize()
Deprecated.Thefinalize
method has been deprecated.protected void
MemoryCacheImageInputStream. finalize()
Deprecated.Thefinalize
method has been deprecated.Uses ofThrowable injavax.lang.model
Subclasses ofThrowable injavax.lang.model Modifier and Type Class Description class
UnknownEntityException
Superclass of exceptions which indicate that an unknown kind of entity was encountered.Uses ofThrowable injavax.lang.model.element
Subclasses ofThrowable injavax.lang.model.element Modifier and Type Class Description class
UnknownAnnotationValueException
Indicates that an unknown kind of annotation value was encountered.class
UnknownDirectiveException
Indicates that an unknown kind of module directive was encountered.class
UnknownElementException
Indicates that an unknown kind of element was encountered.Uses ofThrowable injavax.lang.model.type
Subclasses ofThrowable injavax.lang.model.type Modifier and Type Class Description class
MirroredTypeException
Thrown when an application attempts to access theClass
object corresponding to aTypeMirror
.class
MirroredTypesException
Thrown when an application attempts to access a sequence ofClass
objects each corresponding to aTypeMirror
.class
UnknownTypeException
Indicates that an unknown kind of type was encountered.Uses ofThrowable injavax.management
Subclasses ofThrowable injavax.management Modifier and Type Class Description class
AttributeNotFoundException
The specified attribute does not exist or cannot be retrieved.class
BadAttributeValueExpException
Thrown when an invalid MBean attribute is passed to a query constructing method.class
BadBinaryOpValueExpException
Thrown when an invalid expression is passed to a method for constructing a query.class
BadStringOperationException
Thrown when an invalid string operation is passed to a method for constructing a query.class
InstanceAlreadyExistsException
The MBean is already registered in the repository.class
InstanceNotFoundException
The specified MBean does not exist in the repository.class
IntrospectionException
An exception occurred during the introspection of an MBean.class
InvalidApplicationException
Thrown when an attempt is made to apply either of the following: A subquery expression to an MBean or a qualified attribute expression to an MBean of the wrong class.class
InvalidAttributeValueException
The value specified is not valid for the attribute.class
JMException
Exceptions thrown by JMX implementations.class
JMRuntimeException
Runtime exceptions emitted by JMX implementations.class
ListenerNotFoundException
The specified MBean listener does not exist in the repository.class
MalformedObjectNameException
The format of the string does not correspond to a valid ObjectName.class
MBeanException
Represents "user defined" exceptions thrown by MBean methods in the agent.class
MBeanRegistrationException
Wraps exceptions thrown by the preRegister(), preDeregister() methods of theMBeanRegistration
interface.class
NotCompliantMBeanException
Exception which occurs when trying to register an object in the MBean server that is not a JMX compliant MBean.class
OperationsException
Represents exceptions thrown in the MBean server when performing operations on MBeans.class
ReflectionException
Represents exceptions thrown in the MBean server when using the java.lang.reflect classes to invoke methods on MBeans.class
RuntimeErrorException
When ajava.lang.Error
occurs in the agent it should be caught and re-thrown as aRuntimeErrorException
.class
RuntimeMBeanException
Represents runtime exceptions thrown by MBean methods in the agent.class
RuntimeOperationsException
Represents runtime exceptions thrown in the agent when performing operations on MBeans.class
ServiceNotFoundException
Represents exceptions raised when a requested service is not supported.Methods injavax.management that returnThrowable Modifier and Type Method Description Throwable
MBeanException. getCause()
Return the actualException
thrown.Throwable
ReflectionException. getCause()
Returns the actualException
thrown.Throwable
RuntimeErrorException. getCause()
Returns the actualError
thrown.Throwable
RuntimeMBeanException. getCause()
Returns the actualRuntimeException
thrown.Throwable
RuntimeOperationsException. getCause()
Returns the actualRuntimeException
thrown.Uses ofThrowable injavax.management.modelmbean
Subclasses ofThrowable injavax.management.modelmbean Modifier and Type Class Description class
InvalidTargetObjectTypeException
Exception thrown when an invalid target object type is specified.class
XMLParseException
This exception is thrown when an XML formatted string is being parsed into ModelMBean objects or when XML formatted strings are being created from ModelMBean objects.Uses ofThrowable injavax.management.monitor
Subclasses ofThrowable injavax.management.monitor Modifier and Type Class Description class
MonitorSettingException
Exception thrown by the monitor when a monitor setting becomes invalid while the monitor is running.Uses ofThrowable injavax.management.openmbean
Subclasses ofThrowable injavax.management.openmbean Modifier and Type Class Description class
InvalidKeyException
This runtime exception is thrown to indicate that a method parameter which was expected to be an item name of acomposite data or a row index of atabular data is not valid.class
InvalidOpenTypeException
This runtime exception is thrown to indicate that theopen type of anopen data value is not the one expected.class
KeyAlreadyExistsException
This runtime exception is thrown to indicate that the index of a row to be added to atabular data instance is already used to refer to another row in thistabular data instance.class
OpenDataException
This checked exception is thrown when anopen type, anopen data or anopen MBean metadata info instance could not be constructed because one or more validity constraints were not met.Uses ofThrowable injavax.management.relation
Subclasses ofThrowable injavax.management.relation Modifier and Type Class Description class
InvalidRelationIdException
This exception is raised when relation id provided for a relation is already used.class
InvalidRelationServiceException
This exception is raised when an invalid Relation Service is provided.class
InvalidRelationTypeException
Invalid relation type.class
InvalidRoleInfoException
This exception is raised when, in a role info, its minimum degree is greater than its maximum degree.class
InvalidRoleValueException
Role value is invalid.class
RelationException
This class is the superclass of any exception which can be raised during relation management.class
RelationNotFoundException
This exception is raised when there is no relation for a given relation id in a Relation Service.class
RelationServiceNotRegisteredException
This exception is raised when an access is done to the Relation Service and that one is not registered.class
RelationTypeNotFoundException
This exception is raised when there is no relation type with given name in Relation Service.class
RoleInfoNotFoundException
This exception is raised when there is no role info with given name in a given relation type.class
RoleNotFoundException
This exception is raised when a role in a relation does not exist, or is not readable, or is not settable.Uses ofThrowable injavax.management.remote
Subclasses ofThrowable injavax.management.remote Modifier and Type Class Description class
JMXProviderException
Exception thrown byJMXConnectorFactory
andJMXConnectorServerFactory
when a provider exists for the required protocol but cannot be used for some reason.class
JMXServerErrorException
Exception thrown as the result of a remoteMBeanServer
method invocation when anError
is thrown while processing the invocation in the remote MBean server.Constructors injavax.management.remote with parameters of typeThrowable Constructor Description JMXProviderException(String message,Throwable cause)
Constructs aJMXProviderException
with the specified detail message and nested exception.Uses ofThrowable injavax.naming
Subclasses ofThrowable injavax.naming Modifier and Type Class Description class
AuthenticationException
This exception is thrown when an authentication error occurs while accessing the naming or directory service.class
AuthenticationNotSupportedException
This exception is thrown when the particular flavor of authentication requested is not supported.class
CannotProceedException
This exception is thrown to indicate that the operation reached a point in the name where the operation cannot proceed any further.class
CommunicationException
This exception is thrown when the client is unable to communicate with the directory or naming service.class
ConfigurationException
This exception is thrown when there is a configuration problem.class
ContextNotEmptyException
This exception is thrown when attempting to destroy a context that is not empty.class
InsufficientResourcesException
This exception is thrown when resources are not available to complete the requested operation.class
InterruptedNamingException
This exception is thrown when the naming operation being invoked has been interrupted.class
InvalidNameException
This exception indicates that the name being specified does not conform to the naming syntax of a naming system.class
LimitExceededException
This exception is thrown when a method terminates abnormally due to a user or system specified limit.class
LinkException
This exception is used to describe problems encountered while resolving links.class
LinkLoopException
This exception is thrown when a loop was detected while attempting to resolve a link, or an implementation specific limit on link counts has been reached.class
MalformedLinkException
This exception is thrown when a malformed link was encountered while resolving or constructing a link.class
NameAlreadyBoundException
This exception is thrown by methods to indicate that a binding cannot be added because the name is already bound to another object.class
NameNotFoundException
This exception is thrown when a component of the name cannot be resolved because it is not bound.class
NamingException
This is the superclass of all exceptions thrown by operations in the Context and DirContext interfaces.class
NamingSecurityException
This is the superclass of security-related exceptions thrown by operations in the Context and DirContext interfaces.class
NoInitialContextException
This exception is thrown when no initial context implementation can be created.class
NoPermissionException
This exception is thrown when attempting to perform an operation for which the client has no permission.class
NotContextException
This exception is thrown when a naming operation proceeds to a point where a context is required to continue the operation, but the resolved object is not a context.class
OperationNotSupportedException
This exception is thrown when a context implementation does not support the operation being invoked.class
PartialResultException
This exception is thrown to indicate that the result being returned or returned so far is partial, and that the operation cannot be completed.class
ReferralException
This abstract class is used to represent a referral exception, which is generated in response to areferral such as that returned by LDAP v3 servers.class
ServiceUnavailableException
This exception is thrown when attempting to communicate with a directory or naming service and that service is not available.class
SizeLimitExceededException
This exception is thrown when a method produces a result that exceeds a size-related limit.class
TimeLimitExceededException
This exception is thrown when a method does not terminate within the specified time limit.Fields injavax.naming declared asThrowable Modifier and Type Field Description protectedThrowable
NamingException. rootException
Contains the original exception that caused this NamingException to be thrown.Methods injavax.naming that returnThrowable Modifier and Type Method Description Throwable
NamingException. getCause()
Returns the cause of this exception.Throwable
NamingException. getRootCause()
Retrieves the root cause of this NamingException, if any.Throwable
NamingException. initCause(Throwable cause)
Initializes the cause of this exception to the specified value.Methods injavax.naming with parameters of typeThrowable Modifier and Type Method Description Throwable
NamingException. initCause(Throwable cause)
Initializes the cause of this exception to the specified value.void
NamingException. setRootCause(Throwable e)
Records the root cause of this NamingException.Uses ofThrowable injavax.naming.directory
Subclasses ofThrowable injavax.naming.directory Modifier and Type Class Description class
AttributeInUseException
This exception is thrown when an operation attempts to add an attribute that already exists.class
AttributeModificationException
This exception is thrown when an attempt is made to add, or remove, or modify an attribute, its identifier, or its values that conflicts with the attribute's (schema) definition or the attribute's state.class
InvalidAttributeIdentifierException
This exception is thrown when an attempt is made to add to create an attribute with an invalid attribute identifier.class
InvalidAttributesException
This exception is thrown when an attempt is made to add or modify an attribute set that has been specified incompletely or incorrectly.class
InvalidAttributeValueException
This class is thrown when an attempt is made to add to an attribute a value that conflicts with the attribute's schema definition.class
InvalidSearchControlsException
This exception is thrown when the specification of the SearchControls for a search operation is invalid.class
InvalidSearchFilterException
This exception is thrown when the specification of a search filter is invalid.class
NoSuchAttributeException
This exception is thrown when attempting to access an attribute that does not exist.class
SchemaViolationException
This exception is thrown when a method in some ways violates the schema.Uses ofThrowable injavax.naming.ldap
Subclasses ofThrowable injavax.naming.ldap Modifier and Type Class Description class
LdapReferralException
This abstract class is used to represent an LDAP referral exception.Uses ofThrowable injavax.net.ssl
Subclasses ofThrowable injavax.net.ssl Modifier and Type Class Description class
SSLException
Indicates some kind of error detected by an SSL subsystem.class
SSLHandshakeException
Indicates that the client and server could not negotiate the desired level of security.class
SSLKeyException
Reports a bad SSL key.class
SSLPeerUnverifiedException
Indicates that the peer's identity has not been verified.class
SSLProtocolException
Reports an error in the operation of the SSL protocol.Constructors injavax.net.ssl with parameters of typeThrowable Constructor Description SSLException(String message,Throwable cause)
Creates aSSLException
with the specified detail message and cause.SSLException(Throwable cause)
Creates aSSLException
with the specified cause and a detail message of(cause==null ? null : cause.toString())
(which typically contains the class and detail message ofcause
).Uses ofThrowable injavax.print
Subclasses ofThrowable injavax.print Modifier and Type Class Description class
PrintException
ClassPrintException
encapsulates a printing-related error condition that occurred while using a Print Service instance.Uses ofThrowable injavax.print.attribute
Subclasses ofThrowable injavax.print.attribute Modifier and Type Class Description class
UnmodifiableSetException
Thrown to indicate that the requested operation cannot be performed because the set is unmodifiable.Uses ofThrowable injavax.script
Subclasses ofThrowable injavax.script Modifier and Type Class Description class
ScriptException
The genericException
class for the Scripting APIs.Uses ofThrowable injavax.security.auth
Subclasses ofThrowable injavax.security.auth Modifier and Type Class Description class
DestroyFailedException
Signals that adestroy
operation failed.class
RefreshFailedException
Signals that arefresh
operation failed.Uses ofThrowable injavax.security.auth.callback
Subclasses ofThrowable injavax.security.auth.callback Modifier and Type Class Description class
UnsupportedCallbackException
Signals that aCallbackHandler
does not recognize a particularCallback
.Uses ofThrowable injavax.security.auth.login
Subclasses ofThrowable injavax.security.auth.login Modifier and Type Class Description class
AccountException
A generic account exception.class
AccountExpiredException
Signals that a user account has expired.class
AccountLockedException
Signals that an account was locked.class
AccountNotFoundException
Signals that an account was not found.class
CredentialException
A generic credential exception.class
CredentialExpiredException
Signals that aCredential
has expired.class
CredentialNotFoundException
Signals that a credential was not found.class
FailedLoginException
Signals that user authentication failed.class
LoginException
This is the basic login exception.Uses ofThrowable injavax.security.cert
Subclasses ofThrowable injavax.security.cert Modifier and Type Class Description class
CertificateEncodingException
Deprecated.Use the classes injava.security.cert
instead.class
CertificateException
Deprecated.Use the classes injava.security.cert
instead.class
CertificateExpiredException
Deprecated.Use the classes injava.security.cert
instead.class
CertificateNotYetValidException
Deprecated.Use the classes injava.security.cert
instead.class
CertificateParsingException
Deprecated.Use the classes injava.security.cert
instead.Uses ofThrowable injavax.security.sasl
Subclasses ofThrowable injavax.security.sasl Modifier and Type Class Description class
AuthenticationException
This exception is thrown by a SASL mechanism implementation to indicate that the SASL exchange has failed due to reasons related to authentication, such as an invalid identity, passphrase, or key.class
SaslException
This class represents an error that has occurred when using SASL.Constructors injavax.security.sasl with parameters of typeThrowable Constructor Description AuthenticationException(String detail,Throwable ex)
Constructs a new instance ofAuthenticationException
with a detailed message and a root exception.SaslException(String detail,Throwable ex)
Constructs a new instance ofSaslException
with a detailed message and a root exception.Uses ofThrowable injavax.smartcardio
Subclasses ofThrowable injavax.smartcardio Modifier and Type Class Description class
CardException
Exception for errors that occur during communication with the Smart Card stack or the card itself.class
CardNotPresentException
Exception thrown when an application tries to establish a connection with a terminal that has no card present.Constructors injavax.smartcardio with parameters of typeThrowable Constructor Description CardException(String message,Throwable cause)
Constructs a new CardException with the specified detail message and cause.CardException(Throwable cause)
Constructs a new CardException with the specified cause and a detail message of(cause==null ? null : cause.toString())
.CardNotPresentException(String message,Throwable cause)
Constructs a new CardNotPresentException with the specified detail message and cause.CardNotPresentException(Throwable cause)
Constructs a new CardNotPresentException with the specified cause and a detail message of(cause==null ? null : cause.toString())
.Uses ofThrowable injavax.sound.midi
Subclasses ofThrowable injavax.sound.midi Modifier and Type Class Description class
InvalidMidiDataException
AnInvalidMidiDataException
indicates that inappropriate MIDI data was encountered.class
MidiUnavailableException
AMidiUnavailableException
is thrown when a requested MIDI component cannot be opened or created because it is unavailable.Uses ofThrowable injavax.sound.sampled
Subclasses ofThrowable injavax.sound.sampled Modifier and Type Class Description class
LineUnavailableException
ALineUnavailableException
is an exception indicating that a line cannot be opened because it is unavailable.class
UnsupportedAudioFileException
AnUnsupportedAudioFileException
is an exception indicating that an operation failed because a file did not contain valid data of a recognized file type and format.Uses ofThrowable injavax.sql.rowset
Subclasses ofThrowable injavax.sql.rowset Modifier and Type Class Description class
RowSetWarning
An extension ofSQLException
that provides information about database warnings set onRowSet
objects.Uses ofThrowable injavax.sql.rowset.serial
Subclasses ofThrowable injavax.sql.rowset.serial Modifier and Type Class Description class
SerialException
Indicates and an error with the serialization or de-serialization of SQL types such asBLOB, CLOB, STRUCT or ARRAY
in addition to SQL types such asDATALINK and JAVAOBJECT
Uses ofThrowable injavax.sql.rowset.spi
Subclasses ofThrowable injavax.sql.rowset.spi Modifier and Type Class Description class
SyncFactoryException
Indicates an error withSyncFactory
mechanism.class
SyncProviderException
Indicates an error with theSyncProvider
mechanism.Uses ofThrowable injavax.swing
Subclasses ofThrowable injavax.swing Modifier and Type Class Description class
UnsupportedLookAndFeelException
An exception that indicates the requested look & feel management classes are not present on the user's system.Uses ofThrowable injavax.swing.text
Subclasses ofThrowable injavax.swing.text Modifier and Type Class Description class
BadLocationException
This exception is to report bad locations within a document model (that is, attempts to reference a location that doesn't exist).class
ChangedCharSetException
ChangedCharSetException as the name indicates is an exception thrown when the charset is changed.Uses ofThrowable injavax.swing.tree
Subclasses ofThrowable injavax.swing.tree Modifier and Type Class Description class
ExpandVetoException
Exception used to stop an expand/collapse from happening.Uses ofThrowable injavax.swing.undo
Subclasses ofThrowable injavax.swing.undo Modifier and Type Class Description class
CannotRedoException
Thrown when an UndoableEdit is told toredo()
and can't.class
CannotUndoException
Thrown when an UndoableEdit is told toundo()
and can't.Uses ofThrowable injavax.transaction.xa
Subclasses ofThrowable injavax.transaction.xa Modifier and Type Class Description class
XAException
The XAException is thrown by the Resource Manager (RM) to inform the Transaction Manager of an error encountered by the involved transaction.Uses ofThrowable injavax.xml.catalog
Subclasses ofThrowable injavax.xml.catalog Modifier and Type Class Description class
CatalogException
The exception class handles errors that may happen while processing or using a catalog.Constructors injavax.xml.catalog with parameters of typeThrowable Constructor Description CatalogException(String message,Throwable cause)
Constructs a new CatalogException with the specified detail message and cause.Uses ofThrowable injavax.xml.crypto
Subclasses ofThrowable injavax.xml.crypto Modifier and Type Class Description class
KeySelectorException
Indicates an exceptional condition thrown by aKeySelector
.class
MarshalException
Indicates an exceptional condition that occurred during the XML marshalling or unmarshalling process.class
NoSuchMechanismException
This exception is thrown when a particular XML mechanism is requested but is not available in the environment.class
URIReferenceException
Indicates an exceptional condition thrown while dereferencing aURIReference
.Methods injavax.xml.crypto that returnThrowable Modifier and Type Method Description Throwable
KeySelectorException. getCause()
Returns the cause of thisKeySelectorException
ornull
if the cause is nonexistent or unknown.Throwable
MarshalException. getCause()
Returns the cause of thisMarshalException
ornull
if the cause is nonexistent or unknown.Throwable
NoSuchMechanismException. getCause()
Returns the cause of thisNoSuchMechanismException
ornull
if the cause is nonexistent or unknown.Throwable
URIReferenceException. getCause()
Returns the cause of thisURIReferenceException
ornull
if the cause is nonexistent or unknown.Constructors injavax.xml.crypto with parameters of typeThrowable Constructor Description KeySelectorException(String message,Throwable cause)
Constructs a newKeySelectorException
with the specified detail message and cause.KeySelectorException(Throwable cause)
Constructs a newKeySelectorException
with the specified cause and a detail message of(cause==null ? null : cause.toString())
(which typically contains the class and detail message ofcause
).MarshalException(String message,Throwable cause)
Constructs a newMarshalException
with the specified detail message and cause.MarshalException(Throwable cause)
Constructs a newMarshalException
with the specified cause and a detail message of(cause==null ? null : cause.toString())
(which typically contains the class and detail message ofcause
).NoSuchMechanismException(String message,Throwable cause)
Constructs a newNoSuchMechanismException
with the specified detail message and cause.NoSuchMechanismException(Throwable cause)
Constructs a newNoSuchMechanismException
with the specified cause and a detail message of(cause==null ? null : cause.toString())
(which typically contains the class and detail message ofcause
).URIReferenceException(String message,Throwable cause)
Constructs a newURIReferenceException
with the specified detail message and cause.URIReferenceException(String message,Throwable cause,URIReference uriReference)
Constructs a newURIReferenceException
with the specified detail message, cause andURIReference
.URIReferenceException(Throwable cause)
Constructs a newURIReferenceException
with the specified cause and a detail message of(cause==null ? null : cause.toString())
(which typically contains the class and detail message ofcause
).Uses ofThrowable injavax.xml.crypto.dsig
Subclasses ofThrowable injavax.xml.crypto.dsig Modifier and Type Class Description class
TransformException
Indicates an exceptional condition that occurred while executing a transform algorithm.class
XMLSignatureException
Indicates an exceptional condition that occurred during the XML signature generation or validation process.Methods injavax.xml.crypto.dsig that returnThrowable Modifier and Type Method Description Throwable
TransformException. getCause()
Returns the cause of thisTransformException
ornull
if the cause is nonexistent or unknown.Throwable
XMLSignatureException. getCause()
Returns the cause of thisXMLSignatureException
ornull
if the cause is nonexistent or unknown.Constructors injavax.xml.crypto.dsig with parameters of typeThrowable Constructor Description TransformException(String message,Throwable cause)
Constructs a newTransformException
with the specified detail message and cause.TransformException(Throwable cause)
Constructs a newTransformException
with the specified cause and a detail message of(cause==null ? null : cause.toString())
(which typically contains the class and detail message ofcause
).XMLSignatureException(String message,Throwable cause)
Constructs a newXMLSignatureException
with the specified detail message and cause.XMLSignatureException(Throwable cause)
Constructs a newXMLSignatureException
with the specified cause and a detail message of(cause==null ? null : cause.toString())
(which typically contains the class and detail message ofcause
).Uses ofThrowable injavax.xml.datatype
Subclasses ofThrowable injavax.xml.datatype Modifier and Type Class Description class
DatatypeConfigurationException
Indicates a serious configuration error.Constructors injavax.xml.datatype with parameters of typeThrowable Constructor Description DatatypeConfigurationException(String message,Throwable cause)
Create a newDatatypeConfigurationException
with the specified detail message and cause.DatatypeConfigurationException(Throwable cause)
Create a newDatatypeConfigurationException
with the specified cause.Uses ofThrowable injavax.xml.parsers
Subclasses ofThrowable injavax.xml.parsers Modifier and Type Class Description class
FactoryConfigurationError
Thrown when a problem with configuration with the Parser Factories exists.class
ParserConfigurationException
Indicates a serious configuration error.Methods injavax.xml.parsers that returnThrowable Modifier and Type Method Description Throwable
FactoryConfigurationError. getCause()
use the exception chaining mechanism of JDK1.4Uses ofThrowable injavax.xml.stream
Subclasses ofThrowable injavax.xml.stream Modifier and Type Class Description class
FactoryConfigurationError
An error class for reporting factory configuration errors.class
XMLStreamException
The base exception for unexpected processing errors.Fields injavax.xml.stream declared asThrowable Modifier and Type Field Description protectedThrowable
XMLStreamException. nested
Methods injavax.xml.stream that returnThrowable Modifier and Type Method Description Throwable
FactoryConfigurationError. getCause()
use the exception chaining mechanism of JDK1.4Throwable
XMLStreamException. getNestedException()
Gets the nested exception.Constructors injavax.xml.stream with parameters of typeThrowable Constructor Description XMLStreamException(String msg,Throwable th)
Construct an exception with the assocated message and exceptionXMLStreamException(String msg,Location location,Throwable th)
Construct an exception with the assocated message, exception and location.XMLStreamException(Throwable th)
Construct an exception with the assocated exceptionUses ofThrowable injavax.xml.transform
Subclasses ofThrowable injavax.xml.transform Modifier and Type Class Description class
TransformerConfigurationException
Indicates a serious configuration error.class
TransformerException
This class specifies an exceptional condition that occurred during the transformation process.class
TransformerFactoryConfigurationError
Thrown when a problem with configuration with the Transformer Factories exists.Methods injavax.xml.transform that returnThrowable Modifier and Type Method Description Throwable
TransformerException. getCause()
Returns the cause of this throwable ornull
if the cause is nonexistent or unknown.Throwable
TransformerFactoryConfigurationError. getCause()
use the exception chaining mechanism of JDK1.4Throwable
TransformerException. getException()
This method retrieves an exception that this exception wraps.Throwable
TransformerException. initCause(Throwable cause)
Initializes thecause of this throwable to the specified value.Methods injavax.xml.transform with parameters of typeThrowable Modifier and Type Method Description Throwable
TransformerException. initCause(Throwable cause)
Initializes thecause of this throwable to the specified value.Constructors injavax.xml.transform with parameters of typeThrowable Constructor Description TransformerConfigurationException(String msg,Throwable e)
Create a newTransformerConfigurationException
with the givenException
base cause and detail message.TransformerConfigurationException(String message,SourceLocator locator,Throwable e)
Wrap an existing exception in a TransformerConfigurationException.TransformerConfigurationException(Throwable e)
Create a newTransformerConfigurationException
with a givenException
base cause of the error.TransformerException(String message,Throwable e)
Wrap an existing exception in a TransformerException.TransformerException(String message,SourceLocator locator,Throwable e)
Wrap an existing exception in a TransformerException.TransformerException(Throwable e)
Create a new TransformerException wrapping an existing exception.Uses ofThrowable injavax.xml.validation
Subclasses ofThrowable injavax.xml.validation Modifier and Type Class Description class
SchemaFactoryConfigurationError
Thrown when a problem with configuration with the Schema Factories exists.Constructors injavax.xml.validation with parameters of typeThrowable Constructor Description SchemaFactoryConfigurationError(String message,Throwable cause)
Create a newSchemaFactoryConfigurationError
with the givenThrowable
base cause and detail message.SchemaFactoryConfigurationError(Throwable cause)
Create a newSchemaFactoryConfigurationError
with the givenThrowable
base cause.Uses ofThrowable injavax.xml.xpath
Subclasses ofThrowable injavax.xml.xpath Modifier and Type Class Description class
XPathException
XPathException
represents a generic XPath exception.class
XPathExpressionException
XPathExpressionException
represents an error in an XPath expression.class
XPathFactoryConfigurationException
XPathFactoryConfigurationException
represents a configuration error in aXPathFactory
environment.class
XPathFunctionException
XPathFunctionException
represents an error with an XPath function.Methods injavax.xml.xpath that returnThrowable Modifier and Type Method Description Throwable
XPathException. getCause()
Get the cause of this XPathException.Constructors injavax.xml.xpath with parameters of typeThrowable Constructor Description XPathException(Throwable cause)
Constructs a newXPathException
with the specifiedcause
.XPathExpressionException(Throwable cause)
Constructs a newXPathExpressionException
with the specifiedcause
.XPathFactoryConfigurationException(Throwable cause)
Constructs a newXPathFactoryConfigurationException
with the specifiedcause
.XPathFunctionException(Throwable cause)
Constructs a newXPathFunctionException
with the specifiedcause
.Uses ofThrowable injdk.dynalink
Subclasses ofThrowable injdk.dynalink Modifier and Type Class Description class
NoSuchDynamicMethodException
Thrown at the invocation if the call site can not be linked by any availableGuardingDynamicLinker
.Uses ofThrowable injdk.dynalink.linker
Methods injdk.dynalink.linker that return types with arguments of typeThrowable Modifier and Type Method Description Class<? extendsThrowable>
GuardedInvocation. getException()
Returns the exception type that if thrown by the invocation should invalidate the linkage of this guarded invocation.Constructor parameters injdk.dynalink.linker with type arguments of typeThrowable Constructor Description GuardedInvocation(MethodHandle invocation,MethodHandle guard,SwitchPoint[] switchPoints,Class<? extendsThrowable> exception)
Creates a new guarded invocation, with a guard method handle, any number of switch points that can be used to invalidate it, and an exception that if thrown when invoked also invalidates it.GuardedInvocation(MethodHandle invocation,MethodHandle guard,SwitchPoint switchPoint,Class<? extendsThrowable> exception)
Creates a new guarded invocation, with a guard method handle, a switch point that can be used to invalidate it, and an exception that if thrown when invoked also invalidates it.Uses ofThrowable injdk.jshell
Subclasses ofThrowable injdk.jshell Modifier and Type Class Description class
EvalException
Wraps an throwable thrown in the executing client.class
JShellException
The superclass of JShell generated exceptionsclass
UnresolvedReferenceException
Exception reported on attempting to execute aRECOVERABLE_DEFINED
snippet.Uses ofThrowable injdk.jshell.execution
Methods injdk.jshell.execution with parameters of typeThrowable Modifier and Type Method Description protectedString
DirectExecutionControl. throwConvertedInvocationException(Throwable cause)
Converts incoming exceptions in user code into instances of subtypes ofExecutionControl.ExecutionControlException
and throws the converted exception.protectedString
DirectExecutionControl. throwConvertedOtherException(Throwable ex)
Converts incoming exceptions in agent code into instances of subtypes ofExecutionControl.ExecutionControlException
and throws the converted exception.Methods injdk.jshell.execution that throwThrowable Modifier and Type Method Description ExecutionControl
FailOverExecutionControlProvider. generate(ExecutionEnv env,Map<String,String> parameters)
Create and return a locally executingExecutionControl
instance.Uses ofThrowable injdk.jshell.spi
Subclasses ofThrowable injdk.jshell.spi Modifier and Type Class Description static class
ExecutionControl.ClassInstallException
A class install (load or redefine) encountered a problem.static class
ExecutionControl.EngineTerminationException
Unbidden execution engine termination has occurred.static class
ExecutionControl.ExecutionControlException
The abstract base of allExecutionControl
exceptions.static class
ExecutionControl.InternalException
An internal problem has occurred.static class
ExecutionControl.NotImplementedException
The command is not implemented.static class
ExecutionControl.ResolutionException
An exception indicating that aDeclarationSnippet
with unresolved references has been encountered.static class
ExecutionControl.RunException
The abstract base of of exceptions specific to running user code.static class
ExecutionControl.StoppedException
An exception indicating that anExecutionControl.invoke(java.lang.String, java.lang.String)
(or theoretically aExecutionControl.varValue(java.lang.String, java.lang.String)
) has been interrupted by aExecutionControl.stop()
.static class
ExecutionControl.UserException
A 'normal' user exception occurred.class
SPIResolutionException
The construction and throw of this exception is embedded in code generated by the JShell core implementation in such a way that, upon executing aRECOVERABLE_DEFINED
user method, this exception is thrown.Methods injdk.jshell.spi that throwThrowable Modifier and Type Method Description staticExecutionControl
ExecutionControl. generate(ExecutionEnv env,String spec)
Search for a provider, then create and return theExecutionControl
instance.staticExecutionControl
ExecutionControl. generate(ExecutionEnv env,String name,Map<String,String> parameters)
Search for a provider, then create and return theExecutionControl
instance.ExecutionControl
ExecutionControlProvider. generate(ExecutionEnv env,Map<String,String> parameters)
Create and return theExecutionControl
instance.Uses ofThrowable injdk.nashorn.api.scripting
Subclasses ofThrowable injdk.nashorn.api.scripting Modifier and Type Class Description class
NashornException
Deprecated, for removal: This API element is subject to removal in a future version.Nashorn JavaScript script engine and APIs, and the jjs tool are deprecated with the intent to remove them in a future release.Methods injdk.nashorn.api.scripting with parameters of typeThrowable Modifier and Type Method Description staticStackTraceElement[]
NashornException. getScriptFrames(Throwable exception)
Deprecated, for removal: This API element is subject to removal in a future version.Returns array javascript stack frames from the given exception object.staticString
NashornException. getScriptStackString(Throwable exception)
Deprecated, for removal: This API element is subject to removal in a future version.Return a formatted script stack trace string with frames information separated by '\n'Constructors injdk.nashorn.api.scripting with parameters of typeThrowable Constructor Description NashornException(String msg,Throwable cause)
Deprecated, for removal: This API element is subject to removal in a future version.Constructor to initialize error message and cause exception.NashornException(String msg,Throwable cause,String fileName, int line, int column)
Deprecated, for removal: This API element is subject to removal in a future version.Constructor to initialize error message, cause exception, file name, line and column numbers.Uses ofThrowable injdk.nashorn.api.tree
Subclasses ofThrowable injdk.nashorn.api.tree Modifier and Type Class Description class
UnknownTreeException
Deprecated, for removal: This API element is subject to removal in a future version.Nashorn JavaScript script engine and APIs, and the jjs tool are deprecated with the intent to remove them in a future release.Uses ofThrowable injdk.security.jarsigner
Subclasses ofThrowable injdk.security.jarsigner Modifier and Type Class Description class
JarSignerException
This exception is thrown whenJarSigner.sign(java.util.zip.ZipFile, java.io.OutputStream)
fails.Constructors injdk.security.jarsigner with parameters of typeThrowable Constructor Description JarSignerException(String message,Throwable cause)
Constructs a newJarSignerException
with the specified detail message and cause.Uses ofThrowable innetscape.javascript
Subclasses ofThrowable innetscape.javascript Modifier and Type Class Description class
JSException
Thrown when an exception is raised in the JavaScript engine.Constructors innetscape.javascript with parameters of typeThrowable Constructor Description JSException(Throwable t)
Construct a new JavaScript exception with the specified cause.Uses ofThrowable inorg.ietf.jgss
Subclasses ofThrowable inorg.ietf.jgss Modifier and Type Class Description class
GSSException
This exception is thrown whenever a GSS-API error occurs, including any mechanism specific error.Uses ofThrowable inorg.w3c.dom
Subclasses ofThrowable inorg.w3c.dom Modifier and Type Class Description class
DOMException
DOM operations only raise exceptions in "exceptional" circumstances, i.e., when an operation is impossible to perform (either for logical reasons, because data is lost, or because the implementation has become unstable).Uses ofThrowable inorg.w3c.dom.events
Subclasses ofThrowable inorg.w3c.dom.events Modifier and Type Class Description class
EventException
Event operations may throw anEventException
as specified in their method descriptions.Uses ofThrowable inorg.w3c.dom.ls
Subclasses ofThrowable inorg.w3c.dom.ls Modifier and Type Class Description class
LSException
Parser or write operations may throw anLSException
if the processing is stopped.Uses ofThrowable inorg.w3c.dom.ranges
Subclasses ofThrowable inorg.w3c.dom.ranges Modifier and Type Class Description class
RangeException
Range operations may throw aRangeException
as specified in their method descriptions.Uses ofThrowable inorg.w3c.dom.xpath
Subclasses ofThrowable inorg.w3c.dom.xpath Modifier and Type Class Description class
XPathException
A new exception has been created for exceptions specific to these XPath interfaces.Uses ofThrowable inorg.xml.sax
Subclasses ofThrowable inorg.xml.sax Modifier and Type Class Description class
SAXException
Encapsulate a general SAX error or warning.class
SAXNotRecognizedException
Exception class for an unrecognized identifier.class
SAXNotSupportedException
Exception class for an unsupported operation.class
SAXParseException
Encapsulate an XML parse error or warning.Methods inorg.xml.sax that returnThrowable Modifier and Type Method Description Throwable
SAXException. getCause()
Return the cause of the exception