Uses of Class java.lang.RuntimeException (Java Platform SE 8 )
Date: 2026-07-22

## Uses of Class
java.lang.RuntimeException

- Packages that use RuntimeException
  Package | Description
  --- | ---
  java.awt | Contains all of the classes for creating user interfaces and for painting graphics and images.
  java.awt.color | Provides classes for color spaces.
  java.awt.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.invoke | The `java.lang.invoke` package contains dynamic language support provided directly by the Java core class libraries and virtual machine.
  java.lang.reflect | Provides classes and interfaces for obtaining reflective information about classes and objects.
  java.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, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array).
  java.util.concurrent | Utility classes commonly useful in concurrent programming.
  java.util.regex | Classes for matching character sequences against patterns specified by regular expressions.
  javax.lang.model | Classes and hierarchies of packages used to model the Java programming language.
  javax.lang.model.element | Interfaces used to model elements of the Java programming language.
  javax.lang.model.type | Interfaces used to model Java programming language types.
  javax.management | Provides the core classes for the Java Management Extensions.
  javax.management.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 JavaTM 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.bind | Provides a runtime binding framework for client applications including unmarshalling, marshalling, and validation capabilities.
  javax.xml.crypto | Common classes for XML cryptography.
  javax.xml.ws | This package contains the core JAX-WS APIs.
  javax.xml.ws.http | This package defines APIs specific to the HTTP binding.
  javax.xml.ws.soap | This package defines APIs specific to the SOAP binding.
  org.omg.CORBA | Provides the mapping of the OMG CORBA APIs to the JavaTM programming language, including the class `ORB`, which is implemented so that a programmer can use it as a fully-functional Object Request Broker (ORB).
  org.omg.CORBA.portable | Provides a portability layer, that is, a set of ORB APIs that makes it possible for code generated by one vendor to run on another vendor's ORB.
  org.w3c.dom | Provides the interfaces for the Document Object Model (DOM).
  org.w3c.dom.events |
  org.w3c.dom.ls |

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

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

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

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

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

    Subclasses of RuntimeException in java.lang.invoke
    Modifier and Type | Class and 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.reflect

    Subclasses of RuntimeException in java.lang.reflect
    Modifier and Type | Class and Description
    --- | ---
    `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 and 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 and 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 and Description
    --- | ---
    `class` | `IllegalCharsetNameException` Unchecked exception thrown when a string that is not a legal charset name is used as such.
    `class` | `UnsupportedCharsetException` Unchecked exception thrown when no support is available for a requested charset.

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

    Subclasses of RuntimeException in java.nio.file
    Modifier and Type | Class and 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.
    `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 and Description
    --- | ---
    `class` | `RMISecurityException` Deprecated. Use `SecurityException` instead. Application code should never directly reference this class, and `RMISecurityManager` no longer throws this subclass of `java.lang.SecurityException`.

  - ### Uses of RuntimeException in java.security

    Subclasses of RuntimeException in java.security
    Modifier and Type | Class and Description
    --- | ---
    `class` | `AccessControlException` This exception is thrown by the AccessController to indicate that a requested access (to a critical system resource such as the file system or the network) is denied.
    `class` | `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 and 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 and 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 and 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 and 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 and Description
    --- | ---
    `class` | `ConcurrentModificationException` This exception may be thrown by methods that have detected concurrent modification of an object when such modification is not permissible.
    `class` | `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 and Description
    --- | ---
    `class` | `CancellationException` Exception indicating that the result of a value-producing task, such as a `FutureTask`, cannot be retrieved because the task was cancelled.
    `class` | `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.

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

    Subclasses of RuntimeException in java.util.regex
    Modifier and Type | Class and 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 and 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 and Description
    --- | ---
    `class` | `UnknownAnnotationValueException` Indicates that an unknown kind of annotation value 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 and 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 and 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 and Description
    --- | ---
    `RuntimeException` | RuntimeOperationsException.`getTargetException()` Returns the actual `RuntimeException` thrown.
    `RuntimeException` | RuntimeMBeanException.`getTargetException()` Returns the actual `RuntimeException` thrown.

    Constructors in javax.management with parameters of type RuntimeException
    Constructor and 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 and 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 and 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 and 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 and 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.bind

    Subclasses of RuntimeException in javax.xml.bind
    Modifier and Type | Class and Description
    --- | ---
    `class` | `DataBindingException` Exception that represents a failure in a JAXB operation.
    `class` | `TypeConstraintException` This exception indicates that a violation of a dynamically checked type constraint was detected.

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

    Subclasses of RuntimeException in javax.xml.crypto
    Modifier and Type | Class and 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 javax.xml.ws

    Subclasses of RuntimeException in javax.xml.ws
    Modifier and Type | Class and Description
    --- | ---
    `class` | `ProtocolException` The `ProtocolException` class is a base class for exceptions related to a specific protocol binding.
    `class` | `WebServiceException` The `WebServiceException` class is the base exception class for all JAX-WS API runtime exceptions.

  - ### Uses of RuntimeException in javax.xml.ws.http

    Subclasses of RuntimeException in javax.xml.ws.http
    Modifier and Type | Class and Description
    --- | ---
    `class` | `HTTPException` The `HTTPException` exception represents a XML/HTTP fault.

  - ### Uses of RuntimeException in javax.xml.ws.soap

    Subclasses of RuntimeException in javax.xml.ws.soap
    Modifier and Type | Class and Description
    --- | ---
    `class` | `SOAPFaultException` The `SOAPFaultException` exception represents a SOAP 1.1 or 1.2 fault.

  - ### Uses of RuntimeException in org.omg.CORBA

    Subclasses of RuntimeException in org.omg.CORBA
    Modifier and Type | Class and Description
    --- | ---
    `class` | `ACTIVITY_COMPLETED` The `ACTIVITY_COMPLETED` system exception may be raised on any method for which Activity context is accessed.
    `class` | `ACTIVITY_REQUIRED` The `ACTIVITY_REQUIRED` system exception may be raised on any method for which an Activity context is required.
    `class` | `BAD_CONTEXT` Exception thrown when an operation is invoked by a client but the passed context does not contain the context values required by the operation.
    `class` | `BAD_INV_ORDER` This exception indicates that the caller has invoked operations in the wrong order.
    `class` | `BAD_OPERATION` Exception thrown when an object reference denotes an existing object, but that the object does not support the operation that was invoked.
    `class` | `BAD_PARAM` Exception thrown when a parameter passed to a call is out of range or otherwise considered illegal.
    `class` | `BAD_QOS` The `BAD_QOS` exception is raised whenever an object cannot support the quality of service required by an invocation parameter that has a quality of service semantics associated with it.
    `class` | `BAD_TYPECODE` Exception thrown when the ORB has encountered a malformed type code (for example, a type code with an invalid `TCKind` value).
    `class` | `CODESET_INCOMPATIBLE` This exception is raised whenever meaningful communication is not possible between client and server native code sets.
    `class` | `COMM_FAILURE` This exception is raised if communication is lost while an operation is in progress, after the request was sent by the client, but before the reply from the server has been returned to the client.
    `class` | `DATA_CONVERSION` This exception is raised if an ORB cannot convert the representation of data as marshaled into its native representation or vice-versa.
    `class` | `FREE_MEM` Exception thrown when the ORB failed in an attempt to free dynamic memory, for example because of heap corruption or memory segments being locked.
    `class` | `IMP_LIMIT` This exception indicates that an implementation limit was exceeded in the ORB run time.
    `class` | `INITIALIZE` Exception thrown when an ORB has encountered a failure during its initialization, such as failure to acquire networking resources or detecting a configuration error.
    `class` | `INTERNAL` This exception indicates an internal failure in an ORB, for example, if an ORB has detected corruption of its internal data structures.
    `class` | `INTF_REPOS` Exception raised when an ORB cannot reach the interface repository, or some other failure relating to the interface repository is detected.
    `class` | `INV_FLAG` Exception thrown when an invalid flag was passed to an operation (for example, when creating a DII request).
    `class` | `INV_IDENT` This exception indicates that an IDL identifier is syntactically invalid.
    `class` | `INV_OBJREF` This exception indicates that an object reference is internally malformed.
    `class` | `INV_POLICY` Standard exception thrown when an invocation cannot be made because of an incompatibility between `Policy` overrides that apply to the particular invocation.
    `class` | `INVALID_ACTIVITY` The `INVALID_ACTIVITY` system exception may be raised on the Activity or Transaction services' resume methods if a transaction or Activity is resumed in a context different to that from which it was suspended.
    `class` | `INVALID_TRANSACTION` Exception thrown when the request carried an invalid transaction context.
    `class` | `MARSHAL` A request or reply from the network is structurally invalid.
    `class` | `NO_IMPLEMENT` This exception indicates that even though the operation that was invoked exists (it has an IDL definition), no implementation for that operation exists.
    `class` | `NO_MEMORY` Exception thrown when the ORB run time has run out of memory.
    `class` | `NO_PERMISSION` Exception thrown when an invocation failed because the caller has insufficient privileges.
    `class` | `NO_RESOURCES` Exception thrown when the ORB has encountered some general resource limitation.
    `class` | `NO_RESPONSE` This exception is raised if a client attempts to retrieve the result of a deferred synchronous call, but the response for the request is not yet available.
    `class` | `OBJ_ADAPTER` This exception typically indicates an administrative mismatch, for example, a server may have made an attempt to register itself with an implementation repository under a name that is already in use, or is unknown to the repository.
    `class` | `OBJECT_NOT_EXIST` Exception raised whenever an invocation on a deleted object was performed.
    `class` | `PERSIST_STORE` This exception indicates a persistent storage failure, for example, failure to establish a database connection or corruption of a database.
    `class` | `REBIND` `REBIND` is raised when the current effective RebindPolicy, has a value of NO_REBIND or NO_RECONNECT and an invocation on a bound object reference results in a LocateReply message with status OBJECT_FORWARD or a Reply message with status LOCATION_FORWARD.
    `class` | `SystemException` The root class for all CORBA standard exceptions.
    `class` | `TIMEOUT` `TIMEOUT` is raised when no delivery has been made and the specified time-to-live period has been exceeded.
    `class` | `TRANSACTION_MODE` The CORBA `TRANSACTION_MODE` exception is thrown by the client ORB if it detects a mismatch between the InvocationPolicy in the IOR and the chosen invocation path (i.e, direct or routed invocation).
    `class` | `TRANSACTION_REQUIRED` Exception indicates that the request carried a null transaction context, but an active transaction is required.
    `class` | `TRANSACTION_ROLLEDBACK` Exception thrown when the transaction associated with the request has already been rolled back or marked to roll back.
    `class` | `TRANSACTION_UNAVAILABLE` The CORBA `TRANSACTION_UNAVAILABLE` exception is thrown by the ORB when it cannot process a transaction service context because its connection to the Transaction Service has been abnormally terminated.
    `class` | `TRANSIENT` Exception thrown when the ORB attempted to reach an object and failed.
    `class` | `UNKNOWN` This exception is raised if an operation implementation throws a non-CORBA exception (such as an exception specific to the implementation's programming language), or if an operation raises a user exception that does not appear in the operation's raises expression.

  - ### Uses of RuntimeException in org.omg.CORBA.portable

    Subclasses of RuntimeException in org.omg.CORBA.portable
    Modifier and Type | Class and Description
    --- | ---
    `class` | `IndirectionException` The Indirection exception is a Java specific system exception.
    `class` | `UnknownException` The org.omg.CORBA.portable.UnknownException is used for reporting unknown exceptions between ties and ORBs and between ORBs and stubs.

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

    Subclasses of RuntimeException in org.w3c.dom
    Modifier and Type | Class and 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 and 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 and Description
    --- | ---
    `class` | `LSException` Parser or write operations may throw an `LSException` if the processing is stopped.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.