# Uses of Class
java.lang.RuntimeException

Packages that use RuntimeException
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.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.
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.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.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.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.classfile.constantpool
Provides interfaces describing constant pool entries for the `java.lang.classfile` library.
java.lang.instrument
Provides services that allow Java programming language agents to instrument programs running on the Java Virtual Machine (JVM).
java.lang.invoke
The `java.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.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.rmi
Provides the RMI package.
java.security
Provides the classes and interfaces for the security framework.
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.regex
Classes for matching character sequences against patterns specified by regular expressions.
javax.lang.model
Types and hierarchies of packages comprising a Java language model, a reflective API that models the declarations and types of 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.monitor
Provides the definition of the monitor classes.
javax.management.openmbean
Provides the open data types and Open MBean descriptor classes.
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.swing.undo
Allows developers to provide support for undo/redo in applications such as text editors.
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.
jdk.dynalink
Contains interfaces and classes that are used to link an `invokedynamic` call site.
jdk.jshell.spi
Defines the Service Provider Interface for pluggable JShell execution engines.
jdk.security.jarsigner
This package defines APIs for signing jar files.
netscape.javascript
Deprecated, for removal: This API element is subject to removal in a future version.
The jdk.jsobject module will be delivered with JavaFX.
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.

- ## Uses of RuntimeException in com.sun.jdi

  Subclasses of RuntimeException in com.sun.jdi
  Modifier and Type
  Class
  Description
  `class`
  `ClassNotPreparedException`
  Thrown to indicate that the requested operation cannot be completed because the specified class has not yet been prepared.
  `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 thrown
  `class`
  `InvalidLineNumberException`
  Deprecated.
  This exception is no longer thrown
  `class`
  `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`
  `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`
  `OpaqueFrameException`
  Thrown to indicate an operation could not be performed on a frame.
  `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 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 of RuntimeException in com.sun.jdi.request

  Subclasses of RuntimeException in com.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 of RuntimeException in com.sun.nio.sctp

  Subclasses of RuntimeException in com.sun.nio.sctp
  Modifier and Type
  Class
  Description
  `class`
  `IllegalReceiveException`
  Unchecked exception thrown when an attempt is made to invoke the `receive` method of `SctpChannel` or `SctpMultiChannel` 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 of RuntimeException in java.awt

  Subclasses of RuntimeException in java.awt
  Modifier and Type
  Class
  Description
  `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 of RuntimeException in java.awt.color

  Subclasses of RuntimeException in java.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 of RuntimeException in java.awt.dnd

  Subclasses of RuntimeException in java.awt.dnd
  Modifier and Type
  Class
  Description
  `class`
  `InvalidDnDOperationException`
  This exception is thrown by various methods in the java.awt.dnd package.

- ## Uses of RuntimeException in java.awt.geom

  Subclasses of RuntimeException in java.awt.geom
  Modifier and Type
  Class
  Description
  `class`
  `IllegalPathStateException`
  The `IllegalPathStateException` represents an exception that is thrown if an operation is performed on a path that is in an illegal state with respect to the particular operation being performed, such as appending a path segment to a `GeneralPath` without an initial moveto.

- ## Uses of RuntimeException in java.awt.image

  Subclasses of RuntimeException in java.awt.image
  Modifier and Type
  Class
  Description
  `class`
  `ImagingOpException`
  The `ImagingOpException` is thrown if one of the `BufferedImageOp` or `RasterOp` filter methods cannot process the image.
  `class`
  `RasterFormatException`
  The `RasterFormatException` is thrown if there is invalid layout information in the `Raster`.

- ## Uses of RuntimeException in java.io

  Subclasses of RuntimeException in java.io
  Modifier and Type
  Class
  Description
  `class`
  `UncheckedIOException`
  Wraps an `IOException` with an unchecked exception.

- ## Uses of RuntimeException in java.lang

  Subclasses of RuntimeException in java.lang
  Modifier and Type
  Class
  Description
  `class`
  `ArithmeticException`
  Thrown when an exceptional arithmetic condition has occurred.
  `class`
  `ArrayIndexOutOfBoundsException`
  Thrown to indicate that an array has been accessed with an illegal index.
  `class`
  `ArrayStoreException`
  Thrown to indicate that an attempt has been made to store the wrong type of object into an array of objects.
  `class`
  `ClassCastException`
  Thrown to indicate that the code has attempted to cast an object to a subclass of which it is not an instance.
  `class`
  `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`
  `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`
  `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`
  `LayerInstantiationException`
  Thrown when creating a module layer fails.
  `final class`
  `MatchException`
  Thrown to indicate an unexpected failure in pattern matching.
  `class`
  `NegativeArraySizeException`
  Thrown if an application tries to create an array with negative size.
  `class`
  `NullPointerException`
  Thrown when an application attempts to use `null` in a case where an object is required.
  `class`
  `NumberFormatException`
  Thrown to indicate that the application has attempted to convert a string to one of the numeric types, but that the string does not have the appropriate format.
  `class`
  `SecurityException`
  Thrown to indicate a security violation.
  `class`
  `StringIndexOutOfBoundsException`
  Thrown by `String` methods to indicate that an index is either negative or greater than the size of the string.
  `class`
  `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`
  `UnsupportedOperationException`
  Thrown to indicate that the requested operation is not supported.
  `final class`
  `WrongThreadException`
  Thrown to indicate that a method has been called on the wrong thread.

- ## Uses of RuntimeException in java.lang.annotation

  Subclasses of RuntimeException in java.lang.annotation
  Modifier and Type
  Class
  Description
  `class`
  `AnnotationTypeMismatchException`
  Thrown to indicate that a program has attempted to access an element of an annotation whose type has changed after the annotation was compiled (or serialized).
  `class`
  `IncompleteAnnotationException`
  Thrown to indicate that a program has attempted to access an element of an annotation interface that was added to the annotation interface definition after the annotation was compiled (or serialized).

- ## Uses of RuntimeException in java.lang.classfile.constantpool

  Subclasses of RuntimeException in java.lang.classfile.constantpool
  Modifier and Type
  Class
  Description
  `class`
  `ConstantPoolException`
  Thrown to indicate that requested entry cannot be obtained from the constant pool or the bootstrap method table.

- ## Uses of RuntimeException in java.lang.instrument

  Subclasses of RuntimeException in java.lang.instrument
  Modifier and Type
  Class
  Description
  `class`
  `UnmodifiableModuleException`
  Thrown to indicate that a module cannot be modified.

- ## Uses of RuntimeException in java.lang.invoke

  Subclasses of RuntimeException in java.lang.invoke
  Modifier and Type
  Class
  Description
  `class`
  `WrongMethodTypeException`
  Thrown to indicate that code has attempted to call a method handle via the wrong method type.

- ## Uses of RuntimeException in java.lang.module

  Subclasses of RuntimeException in java.lang.module
  Modifier and Type
  Class
  Description
  `class`
  `FindException`
  Thrown by a `ModuleFinder` 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.

- ## Uses of RuntimeException in java.lang.reflect

  Subclasses of RuntimeException in java.lang.reflect
  Modifier and Type
  Class
  Description
  `class`
  `InaccessibleObjectException`
  Thrown when Java language access checks cannot be suppressed.
  `class`
  `MalformedParameterizedTypeException`
  Thrown when a semantically malformed parameterized type is encountered by a reflective method that needs to instantiate it.
  `class`
  `MalformedParametersException`
  Thrown when `the 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's `invoke` method throws a checked exception (a `Throwable` that is not assignable to `RuntimeException` or `Error`) that is not assignable to any of the exception types declared in the `throws` clause of the method that was invoked on the proxy instance and dispatched to the invocation handler.

- ## Uses of RuntimeException in java.nio

  Subclasses of RuntimeException in java.nio
  Modifier and Type
  Class
  Description
  `class`
  `BufferOverflowException`
  Unchecked exception thrown when a relative put operation reaches the target buffer's limit.
  `class`
  `BufferUnderflowException`
  Unchecked exception thrown when a relative get 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 as `put` or `compact` is invoked upon a read-only buffer.

- ## Uses of RuntimeException in java.nio.channels

  Subclasses of RuntimeException in java.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 a `SocketChannel` that is already connected.
  `class`
  `CancelledKeyException`
  Unchecked exception thrown when an attempt is made to use a selection key that is no longer valid.
  `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 a `SocketChannel` for which a non-blocking connection operation is already in progress.
  `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`
  `NoConnectionPendingException`
  Unchecked exception thrown when the `finishConnect` method of a `SocketChannel` is invoked without first successfully invoking its `connect` 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.

- ## Uses of RuntimeException in java.nio.charset

  Subclasses of RuntimeException in java.nio.charset
  Modifier and Type
  Class
  Description
  `class`
  `IllegalCharsetNameException`
  Unchecked exception thrown when a string that is not a legal charset name is used as such.
  `class`
  `UnsupportedCharsetException`
  Unchecked exception thrown when no support is available for a requested charset.

- ## Uses of RuntimeException in java.nio.file

  Subclasses of RuntimeException in java.nio.file
  Modifier and Type
  Class
  Description
  `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.
  `final class`
  `DirectoryIteratorException`
  Runtime exception thrown if an I/O error is encountered when iterating over the entries in a directory.
  `class`
  `FileSystemAlreadyExistsException`
  Runtime exception thrown when an attempt is made to create a file system that already exists.
  `class`
  `FileSystemNotFoundException`
  Runtime exception thrown when a file system cannot be found.
  `class`
  `InvalidPathException`
  Unchecked exception thrown when path string cannot be converted into a `Path` because the path string contains invalid characters, or the path string is invalid for other file system specific reasons.
  `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 a `read-only` `FileSystem`.

- ## Uses of RuntimeException in java.rmi

  Subclasses of RuntimeException in java.rmi
  Modifier and Type
  Class
  Description
  `class`
  `RMISecurityException`
  Deprecated.
  Use `SecurityException` instead.

- ## Uses of RuntimeException in java.security

  Subclasses of RuntimeException in java.security
  Modifier and Type
  Class
  Description
  `class`
  `AccessControlException`
  Deprecated, for removal: This API element is subject to removal in a future version.
  This exception was only useful in conjunction with the Security Manager, which is no longer supported.
  `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`
  `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.

- ## Uses of RuntimeException in java.time

  Subclasses of RuntimeException in java.time
  Modifier and Type
  Class
  Description
  `class`
  `DateTimeException`
  Exception used to indicate a problem while calculating a date-time.

- ## Uses of RuntimeException in java.time.format

  Subclasses of RuntimeException in java.time.format
  Modifier and Type
  Class
  Description
  `class`
  `DateTimeParseException`
  An exception thrown when an error occurs during parsing.

- ## Uses of RuntimeException in java.time.temporal

  Subclasses of RuntimeException in java.time.temporal
  Modifier and Type
  Class
  Description
  `class`
  `UnsupportedTemporalTypeException`
  UnsupportedTemporalTypeException indicates that a ChronoField or ChronoUnit is not supported for a Temporal class.

- ## Uses of RuntimeException in java.time.zone

  Subclasses of RuntimeException in java.time.zone
  Modifier and Type
  Class
  Description
  `class`
  `ZoneRulesException`
  Thrown to indicate a problem with time-zone configuration.

- ## Uses of RuntimeException in java.util

  Subclasses of RuntimeException in java.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 the `Stack` 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 by `Character.isValidCodePoint(int)` is passed to the `Formatter`.
  `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 in `Locale` and `Locale.Builder` to indicate that an argument is not a well-formed BCP 47 tag.
  `class`
  `InputMismatchException`
  Thrown by a `Scanner` to indicate that the token retrieved does not match the pattern for the expected type, or that the token is out of range for the expected type.
  `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`
  `UnknownFormatConversionException`
  Unchecked exception thrown when an unknown conversion is given.
  `class`
  `UnknownFormatFlagsException`
  Unchecked exception thrown when an unknown flag is given.

- ## Uses of RuntimeException in java.util.concurrent

  Subclasses of RuntimeException in java.util.concurrent
  Modifier and Type
  Class
  Description
  `class`
  `CancellationException`
  Exception indicating that the result of a value-producing task, such as a `FutureTask`, cannot be retrieved because the task was cancelled.
  `class`
  `CompletionException`
  Exception thrown when an error or other exception is encountered in the course of completing a result or task.
  `class`
  `RejectedExecutionException`
  Exception thrown by an `Executor` when a task cannot be accepted for execution.
  `static final class`
  `StructuredTaskScope.FailedExceptionPREVIEW`
  Preview.
  Exception thrown by `StructuredTaskScope.join()`PREVIEW when the outcome is an exception rather than a result.
  `static final class`
  `StructuredTaskScope.TimeoutExceptionPREVIEW`
  Preview.
  Exception thrown by `StructuredTaskScope.join()`PREVIEW if the scope was created with a timeout and the timeout expired before or while waiting in `join`.
  `final class`
  `StructureViolationExceptionPREVIEW`
  Preview.
  Thrown when a structure violation is detected.

- ## Uses of RuntimeException in java.util.regex

  Subclasses of RuntimeException in java.util.regex
  Modifier and Type
  Class
  Description
  `class`
  `PatternSyntaxException`
  Unchecked exception thrown to indicate a syntax error in a regular-expression pattern.

- ## Uses of RuntimeException in javax.lang.model

  Subclasses of RuntimeException in javax.lang.model
  Modifier and Type
  Class
  Description
  `class`
  `UnknownEntityException`
  Superclass of exceptions which indicate that an unknown kind of entity was encountered.

- ## Uses of RuntimeException in javax.lang.model.element

  Subclasses of RuntimeException in javax.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 of RuntimeException in javax.lang.model.type

  Subclasses of RuntimeException in javax.lang.model.type
  Modifier and Type
  Class
  Description
  `class`
  `MirroredTypeException`
  Thrown when an application attempts to access the `Class` object corresponding to a `TypeMirror`.
  `class`
  `MirroredTypesException`
  Thrown when an application attempts to access a sequence of `Class` objects each corresponding to a `TypeMirror`.
  `class`
  `UnknownTypeException`
  Indicates that an unknown kind of type was encountered.

- ## Uses of RuntimeException in javax.management

  Subclasses of RuntimeException in javax.management
  Modifier and Type
  Class
  Description
  `class`
  `JMRuntimeException`
  Runtime exceptions emitted by JMX implementations.
  `class`
  `RuntimeErrorException`
  When a `java.lang.Error` occurs in the agent it should be caught and re-thrown as a `RuntimeErrorException`.
  `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.
  Methods in javax.management that return RuntimeException
  Modifier and Type
  Method
  Description
  `RuntimeException`
  RuntimeMBeanException.`getTargetException()`
  Returns the actual `RuntimeException` thrown.
  `RuntimeException`
  RuntimeOperationsException.`getTargetException()`
  Returns the actual `RuntimeException` thrown.
  Constructors in javax.management with parameters of type RuntimeException
  Modifier
  Constructor
  Description
  ``
  `RuntimeMBeanException(RuntimeException e)`
  Creates a `RuntimeMBeanException` that wraps the actual `java.lang.RuntimeException`.
  ``
  `RuntimeMBeanException(RuntimeException e, String message)`
  Creates a `RuntimeMBeanException` that wraps the actual `java.lang.RuntimeException` with a detailed message.
  ``
  `RuntimeOperationsException(RuntimeException e)`
  Creates a `RuntimeOperationsException` that wraps the actual `java.lang.RuntimeException`.
  ``
  `RuntimeOperationsException(RuntimeException e, String message)`
  Creates a `RuntimeOperationsException` that wraps the actual `java.lang.RuntimeException` with a detailed message.

- ## Uses of RuntimeException in javax.management.monitor

  Subclasses of RuntimeException in javax.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 of RuntimeException in javax.management.openmbean

  Subclasses of RuntimeException in javax.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 a composite data or a row index of a tabular data is not valid.
  `class`
  `InvalidOpenTypeException`
  This runtime exception is thrown to indicate that the open type of an open 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 a tabular data instance is already used to refer to another row in this tabular data instance.

- ## Uses of RuntimeException in javax.print.attribute

  Subclasses of RuntimeException in javax.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 of RuntimeException in javax.swing.undo

  Subclasses of RuntimeException in javax.swing.undo
  Modifier and Type
  Class
  Description
  `class`
  `CannotRedoException`
  Thrown when an UndoableEdit is told to `redo()` and can't.
  `class`
  `CannotUndoException`
  Thrown when an UndoableEdit is told to `undo()` and can't.

- ## Uses of RuntimeException in javax.xml.catalog

  Subclasses of RuntimeException in javax.xml.catalog
  Modifier and Type
  Class
  Description
  `class`
  `CatalogException`
  The exception class handles errors that may happen while processing or using a catalog.

- ## Uses of RuntimeException in javax.xml.crypto

  Subclasses of RuntimeException in javax.xml.crypto
  Modifier and Type
  Class
  Description
  `class`
  `NoSuchMechanismException`
  This exception is thrown when a particular XML mechanism is requested but is not available in the environment.

- ## Uses of RuntimeException in jdk.dynalink

  Subclasses of RuntimeException in jdk.dynalink
  Modifier and Type
  Class
  Description
  `class`
  `NoSuchDynamicMethodException`
  Thrown at the invocation if the call site can not be linked by any available `GuardingDynamicLinker`.

- ## Uses of RuntimeException in jdk.jshell.spi

  Subclasses of RuntimeException in jdk.jshell.spi
  Modifier and Type
  Class
  Description
  `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 a `RECOVERABLE_DEFINED` user method, this exception is thrown.

- ## Uses of RuntimeException in jdk.security.jarsigner

  Subclasses of RuntimeException in jdk.security.jarsigner
  Modifier and Type
  Class
  Description
  `class`
  `JarSignerException`
  This exception is thrown when `JarSigner.sign(ZipFile, OutputStream)` fails.

- ## Uses of RuntimeException in netscape.javascript

  Subclasses of RuntimeException in netscape.javascript
  Modifier and Type
  Class
  Description
  `class`
  `JSException`
  Deprecated, for removal: This API element is subject to removal in a future version.
  The jdk.jsobject module will be delivered with JavaFX.

- ## Uses of RuntimeException in org.w3c.dom

  Subclasses of RuntimeException in org.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 of RuntimeException in org.w3c.dom.events

  Subclasses of RuntimeException in org.w3c.dom.events
  Modifier and Type
  Class
  Description
  `class`
  `EventException`
  Event operations may throw an `EventException` as specified in their method descriptions.

- ## Uses of RuntimeException in org.w3c.dom.ls

  Subclasses of RuntimeException in org.w3c.dom.ls
  Modifier and Type
  Class
  Description
  `class`
  `LSException`
  Parser or write operations may throw an `LSException` if the processing is stopped.

- ## Uses of RuntimeException in org.w3c.dom.ranges

  Subclasses of RuntimeException in org.w3c.dom.ranges
  Modifier and Type
  Class
  Description
  `class`
  `RangeException`
  Range operations may throw a `RangeException` as specified in their method descriptions.

- ## Uses of RuntimeException in org.w3c.dom.xpath

  Subclasses of RuntimeException in org.w3c.dom.xpath
  Modifier and Type
  Class
  Description
  `class`
  `XPathException`
  A new exception has been created for exceptions specific to these XPath interfaces.