Uses of Class
java.lang.Exception
Packages that useException
Package
Description
This is the core package of the Java DebugInterface (JDI), it defines mirrors for values, types, and the targetVirtualMachine itself - as well bootstrapping facilities.
This package defines connections between the virtual machineusing the JDI and the target virtual machine.
This package comprises the interfaces and classes used todevelop new
TransportServiceimplementations.This package is used to request that a JDIevent be sent under specified conditions.
A Java API for Stream Control Transport Protocol.
Provides the API to attach to a Java virtual machine.
This package provides a legacy entry point for thejavac tool.
Contains all of the classes for creating user interfaces and for paintinggraphics and images.
Provides classes for color spaces.
Provides interfaces and classes for transferring data between and withinapplications.
Drag and Drop is a direct manipulation gesture found in many Graphical UserInterface systems that provides a mechanism to transfer information betweentwo entities logically associated with presentation elements in the GUI.
Provides interfaces and classes for dealing with different types of eventsfired by AWT components.
Provides the Java 2D classes for defining and performing operations onobjects related to two-dimensional geometry.
Provides interfaces that enable the development of input methods that can beused with any Java runtime environment.
Provides classes for creating and modifying images.
Provides classes and interfaces for a general printing API.
Contains classes related to developingbeans -- components based onthe JavaBeans architecture.
Provides for system input and output through data streams,serialization and the file system.
Provides classes that are fundamental to the design of the Javaprogramming language.
Provides library support for the Java programming languageannotation facility.
Provides interfaces describing constant pool entries for the
java.lang.classfile library.Provides services that allow Java programming language agents to instrumentprograms running on the Java Virtual Machine (JVM).
The
java.lang.invoke package provides low-level primitives for interactingwith the Java Virtual Machine.Classes to support module descriptors and creating configurations of modulesby means of resolution and service binding.
Provides classes and interfaces for obtaining reflective information aboutclasses and objects.
Provides the classes for implementing networking applications.
HTTP Client and WebSocket APIs
Defines buffers, which are containers for data, and provides anoverview of the other NIO packages.
Defines channels, which represent connections to entities that are capable ofperforming I/O operations, such as files and sockets; defines selectors, formultiplexed, non-blocking I/O operations.
Defines charsets, decoders, and encoders, for translating betweenbytes and Unicode characters.
Defines interfaces and classes for the Java virtual machine to access files,file attributes, and file systems.
Interfaces and classes providing access to file and file system attributes.
Provides the RMI package.
Provides classes and interfaces for supporting the server side of RMI.
Provides the classes and interfaces for the security framework.
Provides classes and interfaces for parsing and managingcertificates, certificate revocation lists (CRLs), andcertification paths.
Provides classes and interfaces for key specifications and algorithmparameter specifications.
Provides the API for accessing and processing data stored in adata source (usually a relational database) using theJava programming language.
Provides classes and interfaces for handling text, dates, numbers,and messages in a manner independent of natural languages.
The main API for dates, times, instants, and durations.
Provides classes to print and parse dates and times.
Access to date and time using fields and units, and date time adjusters.
Support for time-zones and their rules.
Contains the collections framework, some internationalization support classes,a service loader, properties, random number generation, string parsingand scanning classes, base64 encoding and decoding, a bit array, andseveral miscellaneous utility classes.
Utility classes commonly useful in concurrent programming.
Provides classes for reading and writing the JAR (Java ARchive)file format, which is based on the standard ZIP file format with anoptional manifest file.
Provides the classes and interfaces ofthe Java 2 platform's core logging facilities.
This package allows applications to store and retrieve user and systempreference and configuration data.
Classes for matching character sequences against patterns specifiedby regular expressions.
Provides classes for reading and writing the standard ZIP and GZIP fileformats.
Facilities for declaring annotation processors and forallowing annotation processors to communicate with an annotation processingtool environment.
Provides the classes and interfaces for cryptographicoperations.
The main package of the Java Image I/O API.
A package of the Java Image I/O API dealing with reading and writingmetadata.
Types and hierarchies of packages comprising a Java language model, a reflective API that models the declarations and types of the Javaprogramming language.
Interfaces used to model elements of the Java programming language.
Interfaces used to model Java programming language types.
Provides the core classes for the Java Management Extensions.
Provides the definition of the ModelMBean classes.
Provides the definition of the monitor classes.
Provides the open data types and Open MBean descriptor classes.
Provides the definition of the Relation Service.
Interfaces for remote access toJMX MBean servers.
Provides the definition of the Timer MBean.
Provides the classes and interfaces for accessing naming services.
Extends the
javax.naming package to provide functionalityfor accessing directory services.Provides support for LDAPv3 extended operations and controls.
Provides the means for dynamically plugging in support for accessingnaming and directory services through the
javax.namingand related packages.Provides classes for the secure socket package.
Provides the principal classes and interfaces for the Java PrintService API.
Provides classes and interfaces that describe the types of Java PrintService attributes and how they can be collected into attribute sets.
The scripting API consists of interfaces and classes that defineJava Scripting Engines and providesa framework for their use in Java applications.
This package provides a framework for authentication andauthorization.
This package provides the classes necessary for servicesto interact with applications in order to retrieveinformation (authentication data including usernamesor passwords, for example) or to display information(error and warning messages, for example).
This package provides a pluggable authentication framework.
Provides classes for public key certificates.
Contains class and interfaces for supporting SASL.
Java™ Smart Card I/O API.
Provides interfaces and classes for I/O, sequencing, and synthesis of MIDI(Musical Instrument Digital Interface) data.
Provides interfaces and classes for capture, processing, and playback ofsampled audio data.
Standard interfaces and base classes for JDBC
RowSet implementations.Provides utility classes to allow serializable mappings between SQL typesand data types in the Java programming language.
The standard classes and interfaces that a third party vendor has to use in its implementation of a synchronization provider.
Provides a set of "lightweight" (all-Java language) componentsthat, to the maximum degree possible, work the same on all platforms.
Provides classes and interfaces that deal with editable and noneditable textcomponents.
Provides classes and interfaces for dealing with
javax.swing.JTree.Allows developers to provide support for undo/redo in applications such astext editors.
Provides the API that defines the contract between the transaction managerand the resource manager, which allows the transaction manager to enlistand delist resource objects (supplied by the resource manager driver) inJTA transactions.
Provides the classes for implementingXML Catalogs OASIS Standard V1.1, 7 October 2005.
Common classes for XML cryptography.
Classes for generating and validating XML digitalsignatures.
Defines XML/Java Type Mappings.
Provides the classes for processing XML documents with a SAX (Simple API for XML)parser or a DOM (Document Object Model) Document builder.
Defines interfaces and classes for the Streaming API for XML (StAX).
Defines the generic APIs for processing transformation instructions,and performing a transformation from source to result.
Provides anobject-model neutral API for theevaluation of XPath expressions and access to the evaluationenvironment.
Contains interfaces and classes that are used to link an
invokedynamic call site.Contains the linker for ordinary Java objects.
Contains interfaces and classes needed by language runtimes to implementtheir own language-specific object models and type conversions.
Contains classes that make it more convenient for language runtimes toimplement their own language-specific object models and type conversionsby providing basic implementations of some classes as well as variousutilities.
Provides interfaces for creating tools, such as a Read-Eval-Print Loop (REPL),which interactively evaluate "snippets" of Java programming language code.
Provides implementation support for building JShell execution engines.
Defines the Service Provider Interface for pluggable JShell execution engines.
Provides a mechanism to launch an instance of a Java shell tool.
This package defines APIs for signing jar files.
Deprecated, for removal: This API element is subject to removalin a future version.
The jdk.jsobject module will be delivered with JavaFX.
The jdk.jsobject module will be delivered with JavaFX.
This package presents a framework that allows application developers tomake use of security services like authentication, data integrity anddata confidentiality from a variety of underlying security mechanismslike Kerberos, using a unified API.
Provides the interfaces for the Document Object Model (DOM).
Provides interfaces for DOM Level 2 Events.
Provides interfaces for DOM Level 3 Load and Save.
Provides interfaces for DOM Level 2 Range.
Provides interfaces for DOM Level 3 XPath Specification.
Provides the interfaces for the Simple API for XML (SAX).
Uses ofException incom.sun.jdi
Subclasses ofException incom.sun.jdiModifier and TypeClassDescriptionclassThrown to indicate line number or variable information is not available.classThrown to indicate that the requested class hasnot yet been loaded through the appropriate class loader.classThrown to indicate that the requested operation cannot becompleted because the specified class has not yet been prepared.classThrown to indicate that the requested operation cannot becompleted while the specified thread is in its current state.classThrown to indicate that there is an inconistency in the debuginformation provided by the target VM.classThrown to indicate that an unexpected internal error hasoccurred.classDeprecated.This exception is no longer thrownclassDeprecated.This exception is no longer thrownclassThrown to indicate that the requested module is invalidor became invalid after the module was unloaded.classThrown to indicate that the requested operation cannot becompleted because the specified stack frame is no longer valid.classThrown to indicate a type mismatch in setting the value of a fieldor variable, or in specifying the return value of a method.classThrown to indicate an exception occurred in an invoked method withinthe target VM.classThrown to indicate an operation cannot be completed becauseit is not valid for a native method.classThrown to indicate that the requested operation cannot becompleted because the specified object has been garbage collected.classThrown to indicate an operation could not be performed on a frame.classThrown to indicate that the operation is invalid because it wouldmodify the VM and the VM is read-only.classUnchecked exception thrown to indicate that therequested operation cannot becompleted because there is no longer a connection to the target VM.classThrown to indicate that the requested operation cannot becompleted because the mirror from one target VM is beingcombined with a mirror from another target VM.classThrown to indicate that the requested operation cannot becompleted because the target VM has run out of memory.Uses ofException incom.sun.jdi.connect
Subclasses ofException incom.sun.jdi.connectModifier and TypeClassDescriptionclassThrown to indicate an invalid argument orinconsistent passed to aConnector.classThis exception may be thrown as a result of a timeoutwhen attaching to a target VM, or waiting to accept aconnection from a target VM.classA target VM was successfully launched, but terminated with anerror before a connection could be established.Uses ofException incom.sun.jdi.connect.spi
Subclasses ofException incom.sun.jdi.connect.spiModifier and TypeClassDescriptionclassThis exception may be thrown as a result of an asynchronousclose of aConnectionwhile an I/O operation isin progress.Uses ofException incom.sun.jdi.request
Subclasses ofException incom.sun.jdi.requestModifier and TypeClassDescriptionclassThrown to indicate a duplicate event request.classThrown to indicate that the requested event cannot be modifiedbecause it is enabled.Uses ofException incom.sun.nio.sctp
Subclasses ofException incom.sun.nio.sctpModifier and TypeClassDescriptionclassUnchecked exception thrown when an attempt is made to invoke thereceivemethod ofSctpChannelorSctpMultiChannelfrom a notification handler.classUnchecked exception thrown when an attempt is made to remove anaddress that is not bound to the channel, or remove an address from achannel that has only one address bound to it.classUnchecked exception thrown when an attempt is made to send amessage to an invalid stream.Uses ofException incom.sun.tools.attach
Subclasses ofException incom.sun.tools.attachModifier and TypeClassDescriptionclassThe exception thrown when an agent fails to initialize in the targetJava virtual machine.classThe exception thrown when an agent cannot be loaded into the targetJava virtual machine.classThrown byVirtualMachine.attachwhen attempting to attach to a Java virtual machinefor which a compatibleAttachProviderdoes not exist.classException type to signal that an attach operation failed in the target VM.Uses ofException incom.sun.tools.javac
Methods incom.sun.tools.javac that throwExceptionUses ofException injava.awt
Modifier and TypeClassDescriptionclassSignals that an Abstract Window Toolkit exception has occurred.classThrown by method createFont in theFontclass to indicatethat the specified font is bad.classThrown when code that is dependent on a keyboard, display, or mouseis called in an environment that does not support a keyboard, display,or mouse.classSignals that an AWT component is not in an appropriate state forthe requested operation.Uses ofException injava.awt.color
Subclasses ofException injava.awt.colorModifier and TypeClassDescriptionclassThis exception is thrown if the native CMM returns an error.classThis exception is thrown when an error occurs in accessing or processing anICC_Profileobject.Uses ofException injava.awt.datatransfer
Subclasses ofException injava.awt.datatransferModifier and TypeClassDescriptionclassA class to encapsulate MimeType parsing related exceptions.classSignals that the requested data is not supported in this flavor.Uses ofException injava.awt.dnd
Subclasses ofException injava.awt.dndModifier and TypeClassDescriptionclassThis exception is thrown by various methods in the java.awt.dnd package.Uses ofException injava.awt.event
Methods injava.awt.event that returnExceptionModifier and TypeMethodDescriptionInvocationEvent.getException()Returns any Exception caught while executingthe Runnable'srun()method.Uses ofException injava.awt.geom
Subclasses ofException injava.awt.geomModifier and TypeClassDescriptionclassTheIllegalPathStateExceptionrepresents anexception that is thrown if an operation is performed on a paththat is in an illegal state with respect to the particularoperation being performed, such as appending a path segmentto aGeneralPathwithout an initial moveto.classTheNoninvertibleTransformExceptionclass representsan exception that is thrown if an operation is performed requiringthe inverse of anAffineTransformobject but theAffineTransformis in a non-invertible state.Uses ofException injava.awt.im.spi
Methods injava.awt.im.spi that throwExceptionModifier and TypeMethodDescriptionInputMethodDescriptor.createInputMethod()Creates a new instance of the corresponding input method.Uses ofException injava.awt.image
Subclasses ofException injava.awt.imageModifier and TypeClassDescriptionclassTheImagingOpExceptionis thrown if one of theBufferedImageOporRasterOpfilter methods cannotprocess the image.classTheRasterFormatExceptionis thrown if there isinvalid layout information in theRaster.Uses ofException injava.awt.print
Subclasses ofException injava.awt.printModifier and TypeClassDescriptionclassThePrinterAbortExceptionclass is a subclass ofPrinterExceptionand is used to indicate that a useror application has terminated the print job while it was inthe process of printing.classThePrinterExceptionclass and its subclasses are usedto indicate that an exceptional condition has occurred in the printsystem.classThePrinterIOExceptionclass is a subclass ofPrinterExceptionand is used to indicate that an IO errorof some sort has occurred while printing.Uses ofException injava.beans
Subclasses ofException injava.beansModifier and TypeClassDescriptionclassThrown when an exception happens during Introspection.classA PropertyVetoException is thrown when a proposed change to aproperty represents an unacceptable value.Methods injava.beans with parameters of typeExceptionModifier and TypeMethodDescriptionvoidExceptionListener.exceptionThrown(Exception e) This method is called when a recoverable exception hasbeen caught.Methods injava.beans that throwExceptionModifier and TypeMethodDescriptionvoidExpression.execute()Theexecutemethod finds a method whose name is the sameas themethodNameproperty, and invokes the method onthe target.voidStatement.execute()Theexecutemethod finds a method whose name is the sameas themethodNameproperty, and invokes the method onthe target.Expression.getValue()If the value property of this instance is not already set,this method dynamically finds the method with the specifiedmethodName on this target with these arguments and calls it.Uses ofException injava.io
Modifier and TypeClassDescriptionclassBase class for character conversion exceptions.classSignals that an end of file or end of stream has been reachedunexpectedly during input.classSignals that an attempt to open the file denoted by a specified pathnamehas failed.classSignals that an I/O operation has been interrupted.classThrown when the Serialization runtime detects one of the followingproblems with a Class.classIndicates that one or more deserialized objects failed validationtests.classSignals that an I/O exception of some sort has occurred.classThrown when serialization or deserialization is not active.classThrown when an instance is required to have a Serializable interface.classSuperclass of all exceptions specific to Object Stream classes.final classException indicating the failure of an object read operation due tounread primitive data, or the end of data belonging to a serializedobject in the stream.classThrown when control information that was read from an object streamviolates internal consistency checks.classSignals that a sync operation has failed.classWraps anIOExceptionwith an unchecked exception.classThe Character Encoding is not supported.classSignals that a malformed string inmodified UTF-8format has been read in a datainput stream or by any class that implements the data inputinterface.classSignals that one of the ObjectStreamExceptions was thrown during awrite operation.Modifier and TypeFieldDescriptionWriteAbortedException.detailDeprecated.This field predates the general-purpose exceptionchaining facility.ModifierConstructorDescriptionConstructs a WriteAbortedException with a string describingthe exception and the exception causing the abort.Uses ofException injava.lang
Modifier and TypeClassDescriptionclassThrown when an exceptional arithmetic condition has occurred.classThrown to indicate that an array has been accessed with an illegal index.classThrown to indicate that an attempt has been made to store thewrong type of object into an array of objects.classThrown to indicate that the code has attempted to cast an objectto a subclass of which it is not an instance.classThrown when an application tries to load in a class through itsstring name using:TheforNamemethod in classClass.classThrown to indicate that theclonemethod in classObjecthas been called to clone an object, but thatthe object's class does not implement theCloneableinterface.classThrown when an application tries to access an enum constant by nameand the enum type contains no constant with the specified name.classAn IllegalAccessException is thrown when an application triesto reflectively create an instance (other than an array),set or get a field, or invoke a method, but the currentlyexecuting method does not have access to the definition ofthe specified class, field, method or constructor.classThrown to indicate that a method has been passed an illegal orinappropriate argument.classThrown to indicate that a method has been called by an inappropriate caller.classThrown to indicate that a thread has attempted to wait on anobject's monitor or to notify other threads waiting on an object'smonitor without owning the specified monitor.classSignals that a method has been invoked at an illegal orinappropriate time.classThrown to indicate that a thread is not in an appropriate statefor the requested operation.classThrown to indicate that an index of some sort (such as to an array, to astring, or to a vector) is out of range.classThrown when an application tries to create an instance of a class using thenewInstancemethod in classClass, but the specified class object cannot be instantiated.classThrown when a thread is waiting, sleeping, or otherwise occupied,and the thread is interrupted, either before or during the activity.classThrown when creating amodule layer fails.final classThrown to indicate an unexpected failure in pattern matching.classThrown if an application tries to create an array with negative size.classSignals that the class doesn't have a field of a specified name.classThrown when a particular method cannot be found.classThrown when an application attempts to usenullin acase where an object is required.classThrown to indicate that the application has attempted to converta string to one of the numeric types, but that the string does nothave the appropriate format.classCommon superclass of exceptions thrown by reflective operations incore reflection.classRuntimeExceptionis the superclass of thoseexceptions that can be thrown during the normal operation of theJava Virtual Machine.classThrown to indicate a security violation.classThrown byStringmethods to indicate that an index is either negativeor greater than the size of the string.classThrown when an application tries to access a type using a stringrepresenting the type's name, but no definition for the type withthe specified name can be found.classThrown to indicate that the requested operation is not supported.final classThrown to indicate that a method has been called on the wrong thread.Modifier and TypeMethodDescriptionvoidAutoCloseable.close()Closes this resource, relinquishing any underlying resources.Uses ofException injava.lang.annotation
Subclasses ofException injava.lang.annotationModifier and TypeClassDescriptionclassThrown to indicate that a program has attempted to access an element ofan annotation whose type has changed after the annotation was compiled(or serialized).classThrown to indicate that a program has attempted to access an element ofan annotation interface that was added to the annotation interface definitionafter the annotation was compiled (or serialized).Uses ofException injava.lang.classfile.constantpool
Subclasses ofException injava.lang.classfile.constantpoolModifier and TypeClassDescriptionclassThrown to indicate that requested entry cannot be obtained from the constantpool or the bootstrap method table.Uses ofException injava.lang.instrument
Subclasses ofException injava.lang.instrumentModifier and TypeClassDescriptionclassThrown by an implementation ofClassFileTransformer.transformwhen its input parameters are invalid.classThrown by an implementation ofInstrumentation.redefineClasseswhen one of the specified classes cannot be modified.classThrown to indicate that a module cannot be modified.Uses ofException injava.lang.invoke
Subclasses ofException injava.lang.invokeModifier and TypeClassDescriptionclassLambdaConversionExceptionclassStringConcatException is thrown byStringConcatFactorywhen linkageinvariants are violated.classThrown to indicate that code has attempted to call a method handlevia the wrong method type.Uses ofException injava.lang.module
Subclasses ofException injava.lang.moduleModifier and TypeClassDescriptionclassThrown by aModuleFinderwhen an error occurs findinga module.classThrown when reading a module descriptor and the module descriptor is foundto be malformed or otherwise cannot be interpreted as a module descriptor.classThrown when resolving a set of modules, or resolving a set of modules withservice binding, fails.Uses ofException injava.lang.reflect
Subclasses ofException injava.lang.reflectModifier and TypeClassDescriptionclassThrown when Java language access checks cannot be suppressed.classInvocationTargetException is a checked exception that wrapsan exception thrown by an invoked method or constructor.classThrown when a semantically malformed parameterized type isencountered by a reflective method that needs to instantiate it.classThrown whenthejava.lang.reflect packageattempts to read method parameters froma class file and determines that one or more parameters aremalformed.classThrown by a method invocation on a proxy instance if its invocationhandler'sinvokemethod throws achecked exception (aThrowablethat is not assignabletoRuntimeExceptionorError) thatis not assignable to any of the exception types declared in thethrowsclause of the method that was invoked on theproxy instance and dispatched to the invocation handler.Uses ofException injava.net
Modifier and TypeClassDescriptionclassSignals that an error occurred while attempting to bind asocket to a local address and port.classSignals that an error occurred while attempting to connect asocket to a remote address and port.classThrown to indicate that a HTTP request needs to be retriedbut cannot be retried automatically, due to streaming modebeing enabled.classThrown to indicate that a malformed URL has occurred.classSignals that an error occurred while attempting to connect asocket to a remote address and port.classSignals that an ICMP Port Unreachable message has beenreceived on a connected datagram.classThrown to indicate that there is an error in the underlyingprotocol, such as a TCP error.classThrown to indicate that there is an error creating or accessing a Socket.classSignals that a timeout has occurred on a socket read or accept.classThrown to indicate that the IP address of a host could not be determined.classThrown to indicate that an unknown service exception hasoccurred.classChecked exception thrown to indicate that a string could not be parsed as aURI reference.Uses ofException injava.net.http
Subclasses ofException injava.net.httpModifier and TypeClassDescriptionclassThrown when a connection, over which anHttpRequestis intended to besent, is not successfully established within a specified time period.classThrown when a response is not received within a specified time period.final classThrown when the opening handshake has failed.Uses ofException injava.nio
Modifier and TypeClassDescriptionclassUnchecked exception thrown when a relativeput operation reachesthe target buffer's limit.classUnchecked exception thrown when a relativeget operation reachesthe source buffer's limit.classUnchecked exception thrown when an attempt is made to reset a bufferwhen its mark is not defined.classUnchecked exception thrown when a content-mutation method such asputorcompactis invoked upon a read-only buffer.Uses ofException injava.nio.channels
Subclasses ofException injava.nio.channelsModifier and TypeClassDescriptionclassUnchecked exception thrown when an attempt is made to initiate an acceptoperation on a channel and a previous accept operation has not completed.classUnchecked exception thrown when an attempt is made to bind the socket anetwork oriented channel that is already bound.classUnchecked exception thrown when an attempt is made to connect aSocketChannelthat is already connected.classChecked exception received by a thread when another thread closes thechannel or the part of the channel upon which it is blocked in an I/Ooperation.classUnchecked exception thrown when an attempt is made to usea selection key that is no longer valid.classChecked exception received by a thread when another thread interrupts itwhile it is blocked in an I/O operation upon a channel.classChecked exception thrown when an attempt is made to invoke or complete anI/O operation upon channel that is closed, or at least closed to thatoperation.classUnchecked exception thrown when an attempt is made to invoke an I/Ooperation upon a closed selector.classUnchecked exception thrown when an attempt is made to connect aSocketChannelfor which a non-blocking connection operation is already inprogress.classChecked exception received by a thread when another thread interrupts itwhile it is waiting to acquire a file lock.classUnchecked exception thrown when a blocking-mode-specific operationis invoked upon a channel in the incorrect blocking mode.classUnchecked exception thrown when an attempt is made to open a channelin a group that was not created by the same provider.classUnchecked exception thrown when an attempt is made to register a channelwith a selector that was not created by the provider that created thechannel.classChecked exception received by a thread when a timeout elapses before anasynchronous operation completes.classUnchecked exception thrown when thefinishConnectmethod of aSocketChannelis invoked without firstsuccessfully invoking itsconnectmethod.classUnchecked exception thrown when an attempt is made to readfrom a channel that was not originally opened for reading.classUnchecked exception thrown when an attempt is made to writeto a channel that was not originally opened for writing.classUnchecked exception thrown when an attempt is made to invoke an I/Ooperation upon a server socket channel that is not yet bound.classUnchecked exception thrown when an attempt is made to invoke an I/Ooperation upon a socket channel that is not yet connected.classUnchecked exception thrown when an attempt is made to acquire a lock on aregion of a file that overlaps a region already locked by the same Javavirtual machine, or when another thread is already waiting to lock anoverlapping region of the same file.classUnchecked exception thrown when an attempt is made to read from anasynchronous socket channel and a previous read has not completed.classUnchecked 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.classUnchecked exception thrown when an attempt is made to invoke a networkoperation upon an unresolved socket address.classUnchecked exception thrown when an attempt is made to bind or connectto a socket address of a type that is not supported.classUnchecked exception thrown when an attempt is made to write to anasynchronous socket channel and a previous write has not completed.Uses ofException injava.nio.charset
Subclasses ofException injava.nio.charsetModifier and TypeClassDescriptionclassChecked exception thrown when a character encodingor decoding error occurs.classUnchecked exception thrown when a string that is not alegal charset name is used as such.classChecked exception thrown when an input byte sequence is not legal for givencharset, or an input character sequence is not a legal sixteen-bit Unicodesequence.classChecked exception thrown when an input character (or byte) sequenceis valid but cannot be mapped to an output byte (or character)sequence.classUnchecked exception thrown when no support is availablefor a requested charset.Constructors injava.nio.charset with parameters of typeExceptionModifierConstructorDescriptionCoderMalfunctionError(Exception cause) Initializes an instance of this class.Uses ofException injava.nio.file
Subclasses ofException injava.nio.fileModifier and TypeClassDescriptionclassChecked exception thrown when a file system operation is denied, typicallydue to a file permission or other access check.classChecked exception thrown when a file cannot be moved as an atomic file systemoperation.classUnchecked exception thrown when an attempt is made to invoke an operation ona directory stream that is closed.classUnchecked exception thrown when an attempt is made to invoke an operation ona file and the file system is closed.classUnchecked exception thrown when an attempt is made to invoke an operation ona watch service that is closed.final classRuntime exception thrown if an I/O error is encountered when iterating overthe entries in a directory.classChecked exception thrown when a file system operation fails because adirectory is not empty.classChecked exception thrown when an attempt is made to create a file ordirectory and a file of that name already exists.classRuntime exception thrown when an attempt is made to create a file system thatalready exists.classThrown when a file system operation fails on one or two files.classChecked exception thrown when a file system loop, or cycle, is encountered.classRuntime exception thrown when a file system cannot be found.classUnchecked exception thrown when path string cannot be converted into aPathbecause the path string contains invalid characters, orthe path string is invalid for other file system specific reasons.classChecked exception thrown when an attempt is made to access a file that doesnot exist.classChecked exception thrown when a file system operation, intended for adirectory, fails because the file is not a directory.classChecked exception thrown when a file system operation fails because a fileis not a symbolic link.classUnchecked exception thrown when an attempt is made to invoke a method on anobject created by one file system provider with a parameter created by adifferent file system provider.classRuntime exception thrown when a provider of the required type cannot be found.classUnchecked exception thrown when an attempt is made to update an objectassociated with aread-onlyFileSystem.Uses ofException injava.nio.file.attribute
Subclasses ofException injava.nio.file.attributeModifier and TypeClassDescriptionclassChecked exception thrown when a lookup ofUserPrincipalfails becausethe principal does not exist.Uses ofException injava.rmi
Modifier and TypeClassDescriptionclassAnAccessExceptionis thrown by certain methods of thejava.rmi.Namingclass (specificallybind,rebind, andunbind) toindicate that the caller does not have permission to perform the actionrequested by the method call.classAnAlreadyBoundExceptionis thrown if an attemptis made to bind an object to a name that alreadyhas an associated binding in the registry.classAConnectExceptionis thrown if a connection is refusedto the remote host for a remote method call.classAConnectIOExceptionis thrown if anIOExceptionoccurs while making a connectionto the remote host for a remote method call.classAMarshalExceptionis thrown if ajava.io.IOExceptionoccurs while marshalling the remote callheader, arguments or return value for a remote method call.classANoSuchObjectExceptionis thrown if an attempt is made toinvoke a method on an object that no longer exists in the remote virtualmachine.classANotBoundExceptionis thrown if an attemptis made to lookup or unbind in the registry a name that hasno associated binding.classARemoteExceptionis the common superclass for a number ofcommunication-related exceptions that may occur during the execution of aremote method call.classDeprecated.UseSecurityExceptioninstead.classAServerErroris thrown as a result of a remote methodinvocation when anErroris thrown while processingthe invocation on the server, either while unmarshalling the arguments,executing the remote method itself, or marshalling the return value.classAServerExceptionis thrown as a result of a remote methodinvocation when aRemoteExceptionis thrown while processingthe invocation on the server, either while unmarshalling the arguments orexecuting the remote method itself.classDeprecated.no replacementclassAStubNotFoundExceptionis thrown if a valid stub classcould not be found for a remote object when it is exported.classAnUnexpectedExceptionis thrown if the client of aremote method call receives, as a result of the call, a checkedexception that is not among the checked exception types declared in thethrowsclause of the method in the remote interface.classAnUnknownHostExceptionis thrown if ajava.net.UnknownHostExceptionoccurs while creatinga connection to the remote host for a remote method call.classAnUnmarshalExceptioncan be thrown while unmarshalling theparameters or results of a remote method call if any of the followingconditions occur: if an exception occurs while unmarshalling the call header if the protocol for the return value is invalid if ajava.io.IOExceptionoccurs unmarshallingparameters (on the server side) or the return value (on the client side).ModifierConstructorDescriptionAccessException(String s,Exception ex) Constructs anAccessExceptionwith the specifieddetail message and nested exception.ConnectException(String s,Exception ex) Constructs aConnectExceptionwith the specifieddetail message and nested exception.Constructs aConnectIOExceptionwith the specifieddetail message and nested exception.MarshalException(String s,Exception ex) Constructs aMarshalExceptionwith the specifieddetail message and nested exception.ServerException(String s,Exception ex) Constructs aServerExceptionwith the specifieddetail message and nested exception.Deprecated.no replacementConstructs aStubNotFoundExceptionwith the specifieddetail message and nested exception.Constructs aUnexpectedExceptionwith the specifieddetail message and nested exception.Constructs anUnknownHostExceptionwith the specifieddetail message and nested exception.Constructs anUnmarshalExceptionwith the specifieddetail message and nested exception.Uses ofException injava.rmi.server
Subclasses ofException injava.rmi.serverModifier and TypeClassDescriptionclassAnExportExceptionis aRemoteExceptionthrown if an attempt to export a remote object fails.classAServerCloneExceptionis thrown if a remote exception occursduring the cloning of aUnicastRemoteObject.classAnServerNotActiveExceptionis anExceptionthrown during a call toRemoteServer.getClientHostifthe getClientHost method is called outside of servicing a remotemethod call.classDeprecated.no replacement.classDeprecated.no replacement.classDeprecated.This class is obsolete.Fields injava.rmi.server declared asExceptionMethods injava.rmi.server with parameters of typeExceptionModifier and TypeMethodDescriptionbooleanThefailurecallback is invoked when the RMIruntime is unable to create aServerSocketvia theRMISocketFactory.Methods injava.rmi.server that throwExceptionModifier and TypeMethodDescriptionvoidSkeleton.dispatch(Remote obj,RemoteCall theCall, int opnum, long hash) Deprecated.no replacementvoidRemoteCall.executeCall()Deprecated.no replacementInvoke a method.voidRemoteRef.invoke(RemoteCall call) Deprecated.1.2 style stubs no longer use this method.Constructors injava.rmi.server with parameters of typeExceptionModifierConstructorDescriptionExportException(String s,Exception ex) Constructs anExportExceptionwith the specifieddetail message and nested exception.ServerCloneException(String s,Exception cause) Constructs aServerCloneExceptionwith the specifieddetail message and cause.Deprecated.Constructs aSkeletonNotFoundExceptionwith the specifieddetail message and nested exception.Deprecated.Constructs anSocketSecurityExceptionwith the specifieddetail message and nested exception.Uses ofException injava.security
Subclasses ofException injava.securityModifier and TypeClassDescriptionclassDeprecated, for removal: This API element is subject to removal in a future version.This exception was only useful in conjunction withthe Security Manager, which is no longer supported.classThis is the generic Message Digest exception.classTheGeneralSecurityExceptionclass is a genericsecurity exception class that provides type safety for all thesecurity-related exception classes that extend from it.classThis is the exception for invalid or inappropriate algorithm parameters.classThis is the exception for invalid Keys (invalid encoding, wronglength, uninitialized, etc.).classThis exception, designed for use by the JCA/JCE engine classes,is thrown when an invalid parameter is passedto a method.classThis is the basic key exception.classThis is the general key management exception for all operationsdealing with key management.classThis is the generic KeyStore exception.classThis exception is thrown when a particular cryptographic algorithm isrequested but is not available in the environment.classThis exception is thrown when a particular security provider isrequested but is not available in the environment.classThis exception is thrown bydoPrivileged(PrivilegedExceptionAction)anddoPrivileged(PrivilegedExceptionAction,AccessControlContext context)to indicatethat the action being performed threw a checked exception.classA runtime exception forProviderexceptions (such asmisconfiguration errors or unrecoverable internal errors),which may be subclassed by Providers tothrow specialized, provider-specific runtime errors.classThis is the generic Signature exception.classThis exception is thrown if an entry in the keystore cannot be recovered.classThis exception is thrown if a key in the keystore cannot be recovered.Methods injava.security that returnExceptionModifier and TypeMethodDescriptionPrivilegedActionException.getException()Returns the exception thrown by the computation thatresulted in thisPrivilegedActionException.Methods injava.security that throwExceptionConstructors injava.security with parameters of typeExceptionModifierConstructorDescriptionPrivilegedActionException(Exception exception) Constructs a newPrivilegedActionException"wrapping"the specific Exception.Uses ofException injava.security.cert
Subclasses ofException injava.security.certModifier and TypeClassDescriptionclassCertificate Encoding Exception.classThis exception indicates one of a variety of certificate problems.classCertificate Expired Exception.classCertificate is not yet valid exception.classCertificate Parsing Exception.classAn exception that indicates an X.509 certificate is revoked.classAn exception indicating one of a variety of problems encountered whenbuilding a certification path with aCertPathBuilder.classAn exception indicating one of a variety of problems encountered whenvalidating a certification path.classAn exception indicating one of a variety of problems retrievingcertificates and CRLs from aCertStore.classCRL (Certificate Revocation List) Exception.Uses ofException injava.security.spec
Subclasses ofException injava.security.specModifier and TypeClassDescriptionclassThis is the exception for invalid key specifications.classThis is the exception for invalid parameter specifications.Uses ofException injava.sql
Modifier and TypeClassDescriptionclassThe subclass ofSQLExceptionthrown when an erroroccurs during a batch update operation.classAn exception thrown as aDataTruncationexception(on writes) or reported as aDataTruncationwarning (on reads) when a data values is unexpectedly truncated for reasons other than its having exceededMaxFieldSize.classThe subclass ofSQLExceptionis thrown when one or more client info propertiescould not be set on aConnection.classThe subclass ofSQLExceptionthrown when the SQLState class valueis '22', or under vendor-specified conditions.classAn exception that provides information on a database accesserror or other errors.classThe subclass ofSQLExceptionthrown when the SQLState class value is '0A' ( the value is 'zero' A).classThe subclass ofSQLExceptionthrown when the SQLState class valueis '23', or under vendor-specified conditions.classThe subclass ofSQLExceptionthrown when the SQLState class valueis '28', or under vendor-specified conditions.classThe subclass ofSQLExceptionthrown for the SQLStateclass value '08', or under vendor-specified conditions.classThe subclass ofSQLExceptionthrown when an instance where a retryof the same operation would fail unless the cause of theSQLExceptionis corrected.classThe subclass ofSQLExceptionthrown in situations where apreviously failed operation might be able to succeed if the application performs some recovery steps and retries the entire transaction or in the case of adistributed transaction, the transaction branch.classThe subclass ofSQLExceptionthrown when the SQLState class valueis '42', or under vendor-specified conditions.classThe subclass ofSQLExceptionthrown when the timeout specified byStatement.setQueryTimeout,DriverManager.setLoginTimeout,DataSource.setLoginTimeout,XADataSource.setLoginTimeouthas expired.classThe subclass ofSQLExceptionthrown when the SQLState class valueis '40', or under vendor-specified conditions.classThe subclass ofSQLExceptionfor the SQLState classvalue '08', or under vendor-specified conditions.classThe subclass ofSQLExceptionis thrown in situations where apreviously failed operation might be able to succeed when the operation isretried without any intervention by application-level functionality.classAn exception that provides information on database accesswarnings.Uses ofException injava.text
Modifier and TypeClassDescriptionclassSignals that an error has been reached unexpectedlywhile parsing.Uses ofException injava.time
Modifier and TypeClassDescriptionclassException used to indicate a problem while calculating a date-time.Uses ofException injava.time.format
Subclasses ofException injava.time.formatModifier and TypeClassDescriptionclassAn exception thrown when an error occurs during parsing.Uses ofException injava.time.temporal
Subclasses ofException injava.time.temporalModifier and TypeClassDescriptionclassUnsupportedTemporalTypeException indicates that a ChronoField or ChronoUnit isnot supported for a Temporal class.Uses ofException injava.time.zone
Subclasses ofException injava.time.zoneModifier and TypeClassDescriptionclassThrown to indicate a problem with time-zone configuration.Uses ofException injava.util
Modifier and TypeClassDescriptionclassThis exception may be thrown by methods that have detected concurrentmodification of an object when such modification is not permissible.classUnchecked exception thrown when duplicate flags are provided in the formatspecifier.classThrown by methods in theStackclass to indicatethat the stack is empty.classUnchecked exception thrown when a conversion and flag are incompatible.classUnchecked exception thrown when the formatter has been closed.classUnchecked exception thrown when a character with an invalid Unicode codepoint as defined byCharacter.isValidCodePoint(int)is passed to theFormatter.classUnchecked exception thrown when the argument corresponding to the formatspecifier is of an incompatible type.classUnchecked exception thrown when a format string contains an illegal syntaxor a format specifier that is incompatible with the given arguments.classUnchecked exception thrown when an illegal combination flags is given.classUnchecked exception thrown when the precision is a negative value other than-1, the conversion does not support a precision, or the value isotherwise unsupported.classUnchecked exception thrown when the format width is a negative value otherthan-1or is otherwise unsupported.classThrown by methods inLocaleandLocale.Buildertoindicate that an argument is not a well-formed BCP 47 tag.classThrown by aScannerto indicate that the tokenretrieved does not match the pattern for the expected type, orthat the token is out of range for the expected type.classThrown to indicate that an operation could not complete becausethe input did not conform to the appropriate XML document typefor a collection of properties, as per thePropertiesspecification.classUnchecked exception thrown when there is a format specifier which does nothave a corresponding argument or if an argument index refers to an argumentthat does not exist.classUnchecked exception thrown when the format width is required.classSignals that a resource is missing.classThrown by various accessor methods to indicate that the element being requesteddoes not exist.classTheTooManyListenersExceptionException is used as part ofthe Java Event model to annotate and implement a unicast special case ofa multicast Event Source.classUnchecked exception thrown when an unknown conversion is given.classUnchecked exception thrown when an unknown flag is given.Uses ofException injava.util.concurrent
Subclasses ofException injava.util.concurrentModifier and TypeClassDescriptionclassException thrown when a thread tries to wait upon a barrier that isin a broken state, or which enters the broken state while the threadis waiting.classException indicating that the result of a value-producing task,such as aFutureTask, cannot be retrieved because the taskwas cancelled.classException thrown when an error or other exception is encounteredin the course of completing a result or task.classException thrown when attempting to retrieve the result of a taskthat aborted by throwing an exception.classException thrown by anExecutorwhen a task cannot beaccepted for execution.static final classPreview.Exception thrown byStructuredTaskScope.join()PREVIEW when the outcome is an exception rather than aresult.static final classPreview.Exception thrown byStructuredTaskScope.join()PREVIEW if the scope was created with a timeout andthe timeout expired before or while waiting injoin.final classPreview.Thrown when a structure violation is detected.classException thrown when a blocking operation times out.Methods injava.util.concurrent that throwExceptionUses ofException injava.util.jar
Subclasses ofException injava.util.jarModifier and TypeClassDescriptionclassSignals that an error of some sort has occurred while reading fromor writing to a JAR file.Uses ofException injava.util.logging
Methods injava.util.logging with parameters of typeExceptionUses ofException injava.util.prefs
Subclasses ofException injava.util.prefsModifier and TypeClassDescriptionclassThrown to indicate that a preferences operation could not complete becauseof a failure in the backing store, or a failure to contact the backingstore.classThrown to indicate that an operation could not complete becausethe input did not conform to the appropriate XML document typefor a collection of preferences, as per thePreferencesspecification.Uses ofException injava.util.regex
Subclasses ofException injava.util.regexModifier and TypeClassDescriptionclassUnchecked exception thrown to indicate a syntax error in aregular-expression pattern.Uses ofException injava.util.zip
Subclasses ofException injava.util.zipModifier and TypeClassDescriptionclassSignals that a data format error has occurred.classSignals that a ZIP exception of some sort has occurred.Uses ofException injavax.annotation.processing
Subclasses ofException injavax.annotation.processingModifier and TypeClassDescriptionclassIndicates aFilerdetected an attempt to open a file thatwould violate the guarantees provided by theFiler.Uses ofException injavax.crypto
Subclasses ofException injavax.cryptoModifier and TypeClassDescriptionclassThis exception is thrown when aCipheroperating inan AEAD mode (such as GCM/CCM) is unable to verify the suppliedauthentication tag.classThis exception is thrown when a particular padding mechanism isexpected for the input data but the data is not padded properly.classAn exception that is thrown by theKEM.Decapsulator.decapsulate(byte[])method to denote anerror during decapsulation.classThis is the generic ExemptionMechanism exception.classThis exception is thrown when the length of data provided to a blockcipher is incorrect, i.e., does not match the block size of the cipher.classThis exception is thrown when a particular padding mechanism isrequested but is not available in the environment.classThis exception is thrown when an output buffer provided by the useris too short to hold the operation result.Uses ofException injavax.imageio
Subclasses ofException injavax.imageioModifier and TypeClassDescriptionclassAn exception class used for signaling run-time failure of readingand writing operations.Uses ofException injavax.imageio.metadata
Subclasses ofException injavax.imageio.metadataModifier and TypeClassDescriptionclassAnIIOInvalidTreeExceptionis thrown when an attemptby anIIOMetadataobject to parse a tree ofIIOMetadataNodes fails.Uses ofException injavax.lang.model
Subclasses ofException injavax.lang.modelModifier and TypeClassDescriptionclassSuperclass of exceptions which indicate that an unknown kind ofentity was encountered.Uses ofException injavax.lang.model.element
Subclasses ofException injavax.lang.model.elementModifier and TypeClassDescriptionclassIndicates that an unknown kind of annotation value was encountered.classIndicates that an unknown kind of module directive was encountered.classIndicates that an unknown kind of element was encountered.Uses ofException injavax.lang.model.type
Subclasses ofException injavax.lang.model.typeModifier and TypeClassDescriptionclassThrown when an application attempts to access theClassobjectcorresponding to aTypeMirror.classThrown when an application attempts to access a sequence ofClassobjects each corresponding to aTypeMirror.classIndicates that an unknown kind of type was encountered.Uses ofException injavax.management
Subclasses ofException injavax.managementModifier and TypeClassDescriptionclassThe specified attribute does not exist or cannot be retrieved.classThrown when an invalid MBean attribute is passed to a queryconstructing method.classThrown when an invalid expression is passed to a method forconstructing a query.classThrown when an invalid string operation is passedto a method for constructing a query.classThe MBean is already registered in the repository.classThe specified MBean does not exist in the repository.classAn exception occurred during the introspection of an MBean.classThrown when an attempt is made to apply either of the following: Asubquery expression to an MBean or a qualified attribute expressionto an MBean of the wrong class.classThe value specified is not valid for the attribute.classExceptions thrown by JMX implementations.classRuntime exceptions emitted by JMX implementations.classThe specified MBean listener does not exist in the repository.classThe format of the string does not correspond to a valid ObjectName.classRepresents "user defined" exceptions thrown by MBean methodsin the agent.classWraps exceptions thrown by the preRegister(), preDeregister() methodsof theMBeanRegistrationinterface.classException which occurs when trying to register an object in the MBean server that is not a JMX compliant MBean.classRepresents exceptions thrown in the MBean server when performing operationson MBeans.classRepresents exceptions thrown in the MBean server when using thejava.lang.reflect classes to invoke methods on MBeans.classWhen ajava.lang.Erroroccurs in the agent it should be caught andre-thrown as aRuntimeErrorException.classRepresents runtime exceptions thrown by MBean methods inthe agent.classRepresents runtime exceptions thrown in the agent when performing operations on MBeans.classRepresents exceptions raised when a requested service is not supported.Methods injavax.management that returnExceptionModifier and TypeMethodDescriptionMBeanException.getTargetException()Return the actualExceptionthrown.ReflectionException.getTargetException()Returns the actualExceptionthrown.Methods injavax.management that throwExceptionModifier and TypeMethodDescriptionvoidMBeanRegistration.preDeregister()Allows the MBean to perform any operations it needs beforebeing unregistered by the MBean server.voidStandardMBean.preDeregister()Allows the MBean to perform any operations it needs beforebeing unregistered by the MBean server.MBeanRegistration.preRegister(MBeanServer server,ObjectName name) Allows the MBean to perform any operations it needs beforebeing registered in the MBean Server.StandardMBean.preRegister(MBeanServer server,ObjectName name) Allows the MBean to perform any operations it needs beforebeing registered in the MBean server.Constructors injavax.management with parameters of typeExceptionModifierConstructorDescriptionCreates anMBeanExceptionthat wraps the actualjava.lang.Exception.MBeanException(Exception e,String message) Creates anMBeanExceptionthat wraps the actualjava.lang.Exceptionwitha detail message.Creates anMBeanRegistrationExceptionthat wrapsthe actualjava.lang.Exception.MBeanRegistrationException(Exception e,String message) Creates anMBeanRegistrationExceptionthat wrapsthe actualjava.lang.Exceptionwith a detailedmessage.Creates aReflectionExceptionthat wraps the actualjava.lang.Exception.ReflectionException(Exception e,String message) Creates aReflectionExceptionthat wraps the actualjava.lang.Exceptionwitha detail message.Uses ofException injavax.management.modelmbean
Subclasses ofException injavax.management.modelmbeanModifier and TypeClassDescriptionclassException thrown when an invalid target object type is specified.classDeprecated, for removal: This API element is subject to removal in a future version.This class exists only to support XML parsing implemented privately in this module,in DescriptorSupport.Methods injavax.management.modelmbean that throwExceptionModifier and TypeMethodDescriptionvoidRequiredModelMBean.preDeregister()Allows the MBean to perform any operations it needs beforebeing unregistered by the MBean server.RequiredModelMBean.preRegister(MBeanServer server,ObjectName name) Allows the MBean to perform any operations it needs beforebeing registered in the MBean server.Constructors injavax.management.modelmbean with parameters of typeExceptionModifierConstructorDescriptionConstructor taking an exception and a string.Deprecated, for removal: This API element is subject to removal in a future version.Constructor taking a string and an exception.Uses ofException injavax.management.monitor
Subclasses ofException injavax.management.monitorModifier and TypeClassDescriptionclassException thrown by the monitor when a monitor setting becomes invalid while the monitor is running.Methods injavax.management.monitor that throwExceptionModifier and TypeMethodDescriptionvoidMonitor.preDeregister()Allows the monitor MBean to perform any operations it needsbefore being unregistered by the MBean server.Monitor.preRegister(MBeanServer server,ObjectName name) Allows the monitor MBean to perform any operations it needsbefore being registered in the MBean server.Uses ofException injavax.management.openmbean
Subclasses ofException injavax.management.openmbeanModifier and TypeClassDescriptionclassThis runtime exception is thrown to indicate that a method parameter which was expected to bean item name of acomposite data or a row index of atabular data is not valid.classThis runtime exception is thrown to indicate that theopen type of anopen data valueis not the one expected.classThis runtime exception is thrown to indicate that the index of a row to be added to atabular data instanceis already used to refer to another row in thistabular data instance.classThis checked exception is thrown when anopen type, anopen data or anopen MBean metadata info instancecould not be constructed because one or more validity constraints were not met.Uses ofException injavax.management.relation
Subclasses ofException injavax.management.relationModifier and TypeClassDescriptionclassThis exception is raised when relation id provided for a relation is alreadyused.classThis exception is raised when an invalid Relation Service is provided.classInvalid relation type.classThis exception is raised when, in a role info, its minimum degree is greaterthan its maximum degree.classRole value is invalid.classThis class is the superclass of any exception which can be raised duringrelation management.classThis exception is raised when there is no relation for a given relation idin a Relation Service.classThis exception is raised when an access is done to the Relation Service andthat one is not registered.classThis exception is raised when there is no relation type with given name inRelation Service.classThis exception is raised when there is no role info with given name in agiven relation type.classThis exception is raised when a role in a relation does not exist, or is notreadable, or is not settable.Methods injavax.management.relation that throwExceptionModifier and TypeMethodDescriptionvoidRelationService.preDeregister()voidRelationSupport.preDeregister()RelationService.preRegister(MBeanServer server,ObjectName name) RelationSupport.preRegister(MBeanServer server,ObjectName name) Uses ofException injavax.management.remote
Subclasses ofException injavax.management.remoteModifier and TypeClassDescriptionclassException thrown byJMXConnectorFactoryandJMXConnectorServerFactorywhen a provider exists forthe required protocol but cannot be used for some reason.classException thrown as the result of a remoteMBeanServermethod invocation when anErroris thrown whileprocessing the invocation in the remote MBean server.Methods injavax.management.remote that throwExceptionModifier and TypeMethodDescriptionvoidJMXConnectorServer.preDeregister()Called by an MBean server when this connector server isunregistered from that MBean server.Uses ofException injavax.management.timer
Methods injavax.management.timer that throwExceptionModifier and TypeMethodDescriptionvoidTimer.preDeregister()Allows the timer MBean to perform any operations it needs before being unregisteredby the MBean server.Timer.preRegister(MBeanServer server,ObjectName name) Allows the timer MBean to perform any operations it needs before being registeredin the MBean server.Uses ofException injavax.naming
Subclasses ofException injavax.namingModifier and TypeClassDescriptionclassThis exception is thrown when an authentication error occurs while accessing the naming or directory service.classThis exception is thrown when the particular flavor of authentication requested is not supported.classThis exception is thrown to indicate that the operation reached a point in the name where the operation cannot proceed any further.classThis exception is thrown when the client isunable to communicate with the directory or naming service.classThis exception is thrown when there is a configuration problem.classThis exception is thrown when attempting to destroy a context that is not empty.classThis exception is thrown when resources are not available to complete the requested operation.classThis exception is thrown when the naming operationbeing invoked has been interrupted.classThis exception indicates that the name being specified doesnot conform to the naming syntax of a naming system.classThis exception is thrown when a method terminates abnormally due to a user or system specified limit.classThis exception is used to describe problems encountered while resolving links.classThis exception is thrown whena loop was detected while attempting to resolve a link, or an implementationspecific limit on link counts has been reached.classThis exception is thrown when a malformed link was encountered whileresolving or constructing a link.classThis exception is thrown by methods to indicate thata binding cannot be added because the name is already bound toanother object.classThis exception is thrown when a component of the name cannot be resolvedbecause it is not bound.classThis is the superclass of all exceptions thrown by operations in the Context and DirContext interfaces.classThis is the superclass of security-related exceptions thrown by operations in the Context and DirContext interfaces.classThis exception is thrown when no initial context implementation can be created.classThis exception is thrown when attempting to perform an operationfor which the client has no permission.classThis 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.classThis exception is thrown when a context implementation does not supportthe operation being invoked.classThis exception is thrown to indicate that the result being returnedor returned so far is partial, and that the operation cannotbe completed.classThis abstract class is used to represent a referral exception, which is generated in response to areferral such as that returned by LDAP v3 servers.classThis exception is thrown when attempting to communicate with adirectory or naming service and that service is not available.classThis exception is thrown when a methodproduces a result that exceeds a size-related limit.classThis exception is thrown when a methoddoes not terminate within the specified time limit.Uses ofException injavax.naming.directory
Subclasses ofException injavax.naming.directoryModifier and TypeClassDescriptionclassThis exception is thrown when an operation attemptsto add an attribute that already exists.classThis 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.classThis exception is thrown when an attempt ismade to add to create an attribute with an invalid attribute identifier.classThis exception is thrown when an attempt ismade to add or modify an attribute set that has been specifiedincompletely or incorrectly.classThis class is thrown when an attempt ismade to add to an attribute a value that conflicts with the attribute'sschema definition.classThis exception is thrown when the specification ofthe SearchControls for a search operation is invalid.classThis exception is thrown when the specification ofa search filter is invalid.classThis exception is thrown when attempting to accessan attribute that does not exist.classThis exception is thrown when a methodin some ways violates the schema.Uses ofException injavax.naming.ldap
Subclasses ofException injavax.naming.ldapModifier and TypeClassDescriptionclassThis abstract class is used to represent an LDAP referral exception.Uses ofException injavax.naming.spi
Methods injavax.naming.spi that throwExceptionModifier and TypeMethodDescriptionstaticObjectDirectoryManager.getObjectInstance(Object refInfo,Name name,Context nameCtx,Hashtable<?, ?> environment,Attributes attrs) Creates an instance of an object for the specified object, attributes, and environment.DirObjectFactory.getObjectInstance(Object obj,Name name,Context nameCtx,Hashtable<?, ?> environment,Attributes attrs) Creates an object using the location or reference information, and attributes specified.staticObjectNamingManager.getObjectInstance(Object refInfo,Name name,Context nameCtx,Hashtable<?, ?> environment) Creates an instance of an object for the specified object and environment.ObjectFactory.getObjectInstance(Object obj,Name name,Context nameCtx,Hashtable<?, ?> environment) Creates an object using the location or reference information specified.Uses ofException injavax.net.ssl
Subclasses ofException injavax.net.sslModifier and TypeClassDescriptionclassIndicates some kind of error detected by an SSL subsystem.classIndicates that the client and server could not negotiate thedesired level of security.classReports a bad SSL key.classIndicates that the peer's identity has not been verified.classReports an error in the operation of the SSL protocol.Uses ofException injavax.print
Subclasses ofException injavax.printModifier and TypeClassDescriptionclassClassPrintExceptionencapsulates a printing-related error conditionthat occurred while using a Print Service instance.Constructors injavax.print with parameters of typeExceptionModifierConstructorDescriptionConstruct a print exception chaining the supplied exception.Construct a print exception with the given detail message and chainedexception.Uses ofException injavax.print.attribute
Subclasses ofException injavax.print.attributeModifier and TypeClassDescriptionclassThrown to indicate that the requested operation cannot be performed becausethe set is unmodifiable.Uses ofException injavax.script
Subclasses ofException injavax.scriptModifier and TypeClassDescriptionclassThe genericExceptionclass for the Scripting APIs.Constructors injavax.script with parameters of typeExceptionModifierConstructorDescriptionCreates aScriptExceptionwrapping anExceptionthrown by an underlyinginterpreter.Uses ofException injavax.security.auth
Subclasses ofException injavax.security.authModifier and TypeClassDescriptionclassSignals that adestroyoperation failed.classSignals that arefreshoperation failed.Uses ofException injavax.security.auth.callback
Subclasses ofException injavax.security.auth.callbackModifier and TypeClassDescriptionclassSignals that aCallbackHandlerdoes notrecognize a particularCallback.Uses ofException injavax.security.auth.login
Subclasses ofException injavax.security.auth.loginModifier and TypeClassDescriptionclassA generic account exception.classSignals that a user account has expired.classSignals that an account was locked.classSignals that an account was not found.classA generic credential exception.classSignals that aCredentialhas expired.classSignals that a credential was not found.classSignals that user authentication failed.classThis is the basic login exception.Uses ofException injavax.security.cert
Subclasses ofException injavax.security.certModifier and TypeClassDescriptionclassDeprecated, for removal: This API element is subject to removal in a future version.Use the classes injava.security.certinstead.classDeprecated, for removal: This API element is subject to removal in a future version.Use the classes injava.security.certinstead.classDeprecated, for removal: This API element is subject to removal in a future version.Use the classes injava.security.certinstead.classDeprecated, for removal: This API element is subject to removal in a future version.Use the classes injava.security.certinstead.classDeprecated, for removal: This API element is subject to removal in a future version.Use the classes injava.security.certinstead.Uses ofException injavax.security.sasl
Subclasses ofException injavax.security.saslModifier and TypeClassDescriptionclassThis exception is thrown by a SASL mechanism implementationto indicate that the SASLexchange has failed due to reasons related to authentication, such asan invalid identity, passphrase, or key.classThis class represents an error that has occurred when using SASL.Uses ofException injavax.smartcardio
Subclasses ofException injavax.smartcardioModifier and TypeClassDescriptionclassException for errors that occur during communication with theSmart Card stack or the card itself.classException thrown when an application tries to establish a connection with aterminal that has no card present.Uses ofException injavax.sound.midi
Subclasses ofException injavax.sound.midiModifier and TypeClassDescriptionclassAnInvalidMidiDataExceptionindicates that inappropriate MIDI datawas encountered.classAMidiUnavailableExceptionis thrown when a requested MIDI componentcannot be opened or created because it is unavailable.Uses ofException injavax.sound.sampled
Subclasses ofException injavax.sound.sampledModifier and TypeClassDescriptionclassALineUnavailableExceptionis an exception indicating that a linecannot be opened because it is unavailable.classAnUnsupportedAudioFileExceptionis an exception indicating that anoperation failed because a file did not contain valid data of a recognizedfile type and format.Uses ofException injavax.sql.rowset
Subclasses ofException injavax.sql.rowsetModifier and TypeClassDescriptionclassAn extension ofSQLExceptionthat provides informationabout database warnings set onRowSetobjects.Uses ofException injavax.sql.rowset.serial
Subclasses ofException injavax.sql.rowset.serialModifier and TypeClassDescriptionclassIndicates and an error with the serialization or de-serialization ofSQL types such asBLOB, CLOB, STRUCT or ARRAYinaddition to SQL types such asDATALINK and JAVAOBJECTUses ofException injavax.sql.rowset.spi
Subclasses ofException injavax.sql.rowset.spiModifier and TypeClassDescriptionclassIndicates an error withSyncFactorymechanism.classIndicates an error with theSyncProvidermechanism.Uses ofException injavax.swing
Subclasses ofException injavax.swingModifier and TypeClassDescriptionclassAn exception that indicates the requested look & feelmanagement classes are not present on the user's system.Methods injavax.swing that throwExceptionModifier and TypeMethodDescriptionprotected abstractTSwingWorker.doInBackground()Computes a result, or throws an exception if unable to do so.Uses ofException injavax.swing.text
Subclasses ofException injavax.swing.textModifier and TypeClassDescriptionclassThis exception is to report bad locations within a document model(that is, attempts to reference a location that doesn't exist).classChangedCharSetException as the name indicates is an exceptionthrown when the charset is changed.Uses ofException injavax.swing.tree
Subclasses ofException injavax.swing.treeModifier and TypeClassDescriptionclassException used to stop an expand/collapse from happening.Uses ofException injavax.swing.undo
Subclasses ofException injavax.swing.undoModifier and TypeClassDescriptionclassThrown when an UndoableEdit is told toredo()and can't.classThrown when an UndoableEdit is told toundo()and can't.Uses ofException injavax.transaction.xa
Subclasses ofException injavax.transaction.xaModifier and TypeClassDescriptionclassThe XAException is thrown by the Resource Manager (RM) to inform theTransaction Manager of an error encountered by the involved transaction.Uses ofException injavax.xml.catalog
Subclasses ofException injavax.xml.catalogModifier and TypeClassDescriptionclassThe exception class handles errors that may happen while processing or usinga catalog.Uses ofException injavax.xml.crypto
Subclasses ofException injavax.xml.cryptoModifier and TypeClassDescriptionclassIndicates an exceptional condition thrown by aKeySelector.classIndicates an exceptional condition that occurred during the XMLmarshalling or unmarshalling process.classThis exception is thrown when a particular XML mechanism is requested butis not available in the environment.classIndicates an exceptional condition thrown while dereferencing aURIReference.Uses ofException injavax.xml.crypto.dsig
Subclasses ofException injavax.xml.crypto.dsigModifier and TypeClassDescriptionclassIndicates an exceptional condition that occurred while executing atransform algorithm.classIndicates an exceptional condition that occurred during the XMLsignature generation or validation process.Uses ofException injavax.xml.datatype
Subclasses ofException injavax.xml.datatypeModifier and TypeClassDescriptionclassIndicates a serious configuration error.Uses ofException injavax.xml.parsers
Subclasses ofException injavax.xml.parsersModifier and TypeClassDescriptionclassIndicates a serious configuration error.Methods injavax.xml.parsers that returnExceptionModifier and TypeMethodDescriptionFactoryConfigurationError.getException()Return the actual exception (if any) that caused this exception tobe raised.Constructors injavax.xml.parsers with parameters of typeExceptionModifierConstructorDescriptionCreate a newFactoryConfigurationErrorwith agivenExceptionbase cause of the error.Create a newFactoryConfigurationErrorwith thegivenExceptionbase cause and detail message.Uses ofException injavax.xml.stream
Subclasses ofException injavax.xml.streamModifier and TypeClassDescriptionclassThe base exception for unexpected processing errors.Methods injavax.xml.stream that returnExceptionModifier and TypeMethodDescriptionFactoryConfigurationError.getException()Return the nested exception (if any)Constructors injavax.xml.stream with parameters of typeExceptionModifierConstructorDescriptionConstruct an exception with a nested inner exceptionConstruct an exception with a nested inner exceptionand a messageConstruct an exception with a nested inner exceptionand a messageUses ofException injavax.xml.transform
Subclasses ofException injavax.xml.transformModifier and TypeClassDescriptionclassIndicates a serious configuration error.classThis class specifies an exceptional condition that occurredduring the transformation process.Methods injavax.xml.transform that returnExceptionModifier and TypeMethodDescriptionTransformerFactoryConfigurationError.getException()Return the actual exception (if any) that caused this exception tobe raised.Constructors injavax.xml.transform with parameters of typeExceptionModifierConstructorDescriptionCreate a newTransformerFactoryConfigurationErrorwith agivenExceptionbase cause of the error.Create a newTransformerFactoryConfigurationErrorwith thegivenExceptionbase cause and detail message.Uses ofException injavax.xml.xpath
Subclasses ofException injavax.xml.xpathModifier and TypeClassDescriptionclassXPathExceptionrepresents a generic XPath exception.classXPathExpressionExceptionrepresents an error in an XPath expression.classXPathFactoryConfigurationExceptionrepresentsa configuration error in aXPathFactoryenvironment.classXPathFunctionExceptionrepresents an error with an XPath function.Uses ofException injdk.dynalink
Subclasses ofException injdk.dynalinkModifier and TypeClassDescriptionclassThrown at the invocation if the call site can not be linked by any availableGuardingDynamicLinker.Uses ofException injdk.dynalink.beans
Methods injdk.dynalink.beans that throwExceptionModifier and TypeMethodDescriptionMissingMemberHandlerFactory.createMissingMemberHandler(LinkRequest linkRequest,LinkerServices linkerServices) Returns a method handle suitable for implementing missing member behaviorfor a particular link request.BeansLinker.getGuardedInvocation(LinkRequest request,LinkerServices linkerServices) Uses ofException injdk.dynalink.linker
Methods injdk.dynalink.linker that throwExceptionModifier and TypeMethodDescriptionGuardingTypeConverterFactory.convertToType(Class<?> sourceType,Class<?> targetType,Supplier<MethodHandles.Lookup> lookupSupplier) Returns a guarded type conversion that receives a value of the specifiedsource type and returns a value converted to the specified target type.GuardingDynamicLinker.getGuardedInvocation(LinkRequest linkRequest,LinkerServices linkerServices) Creates a guarded invocation appropriate for a particular invocation withthe specified arguments at a call site.LinkerServices.getGuardedInvocation(LinkRequest linkRequest) Creates a guarded invocation delegating back to theDynamicLinkerthat exposes this linker services object.Uses ofException injdk.dynalink.linker.support
Methods injdk.dynalink.linker.support that throwExceptionModifier and TypeMethodDescriptionCompositeGuardingDynamicLinker.getGuardedInvocation(LinkRequest linkRequest,LinkerServices linkerServices) Delegates the call to its component linkers.CompositeTypeBasedGuardingDynamicLinker.getGuardedInvocation(LinkRequest linkRequest,LinkerServices linkerServices) Uses ofException injdk.jshell
Subclasses ofException injdk.jshellModifier and TypeClassDescriptionclassWraps an throwable thrown in the executing client.classThe superclass of JShell generated exceptionsclassException reported on attempting to execute aRECOVERABLE_DEFINEDsnippet.Uses ofException injdk.jshell.execution
Methods injdk.jshell.execution that throwExceptionModifier and TypeMethodDescriptionprotectedStringInvoke the specified "doit-method", a static method with no parameters.static voidLaunch the agent, connecting to the JShell-core over the socket specifiedin the command-line argument.Uses ofException injdk.jshell.spi
Subclasses ofException injdk.jshell.spiModifier and TypeClassDescriptionstatic classA class install (load or redefine) encountered a problem.static classUnbidden execution engine termination has occurred.static classThe abstract base of allExecutionControlexceptions.static classAn internal problem has occurred.static classThe command is not implemented.static classAn exception indicating that aDeclarationSnippetwith unresolvedreferences has been encountered.static classThe abstract base of of exceptions specific to running user code.static classAn 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 classA 'normal' user exception occurred.classThe construction and throw of this exception is embedded in code generated bythe JShell core implementation in such a way that, upon executing aRECOVERABLE_DEFINEDuser method, this exception is thrown.Uses ofException injdk.jshell.tool
Methods injdk.jshell.tool that throwExceptionModifier and TypeMethodDescriptionvoidRun an instance of the Java shell tool as configured by the other methodsin this interface.default intRun an instance of the Java shell tool as configured by the other methodsin this interface.Uses ofException injdk.security.jarsigner
Subclasses ofException injdk.security.jarsignerModifier and TypeClassDescriptionclassThis exception is thrown whenJarSigner.sign(ZipFile, OutputStream)fails.Uses ofException innetscape.javascript
Subclasses ofException innetscape.javascriptModifier and TypeClassDescriptionclassDeprecated, for removal: This API element is subject to removal in a future version.The jdk.jsobject module will be delivered with JavaFX.Uses ofException inorg.ietf.jgss
Subclasses ofException inorg.ietf.jgssModifier and TypeClassDescriptionclassThis exception is thrown whenever a GSS-API error occurs, includingany mechanism specific error.Uses ofException inorg.w3c.dom
Subclasses ofException inorg.w3c.domModifier and TypeClassDescriptionclassDOM 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 ofException inorg.w3c.dom.events
Subclasses ofException inorg.w3c.dom.eventsModifier and TypeClassDescriptionclassEvent operations may throw anEventExceptionas specified intheir method descriptions.Uses ofException inorg.w3c.dom.ls
Subclasses ofException inorg.w3c.dom.lsModifier and TypeClassDescriptionclassParser or write operations may throw anLSExceptionif the processing is stopped.Uses ofException inorg.w3c.dom.ranges
Subclasses ofException inorg.w3c.dom.rangesModifier and TypeClassDescriptionclassRange operations may throw aRangeExceptionas specified intheir method descriptions.Uses ofException inorg.w3c.dom.xpath
Subclasses ofException inorg.w3c.dom.xpathModifier and TypeClassDescriptionclassA new exception has been created for exceptions specific to these XPathinterfaces.Uses ofException inorg.xml.sax
Subclasses ofException inorg.xml.saxModifier and TypeClassDescriptionclassEncapsulate a general SAX error or warning.classException class for an unrecognized identifier.classException class for an unsupported operation.classEncapsulate an XML parse error or warning.Methods inorg.xml.sax that returnExceptionConstructors inorg.xml.sax with parameters of typeExceptionModifierConstructorDescriptionCreate a new SAXException wrapping an existing exception.SAXException(String message,Exception e) Create a new SAXException from an existing exception.SAXParseException(String message,String publicId,String systemId, int lineNumber, int columnNumber,Exception e) Create a new SAXParseException with an embedded exception.SAXParseException(String message,Locator locator,Exception e) Wrap an existing exception in a SAXParseException.