Uses of Class
java.lang.RuntimeException
Package
Description
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.
This package is used to request that a JDI
event be sent under specified conditions.
A Java API for Stream Control Transport Protocol.
Contains all of the classes for creating user interfaces and for painting
graphics and images.
Provides classes for color spaces.
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.
Provides the Java 2D classes for defining and performing operations on
objects related to two-dimensional geometry.
Provides classes for creating and modifying images.
Provides for system input and output through data streams,
serialization and the file system.
Provides classes that are fundamental to the design of the Java
programming language.
Provides library support for the Java programming language
annotation facility.
Provides services that allow Java programming language agents to instrument
programs running on the Java Virtual Machine (JVM).
The
java.lang.invoke
package provides low-level primitives for interacting
with the Java Virtual Machine.Classes to support module descriptors and creating configurations of modules
by means of resolution and service binding.
Provides classes and interfaces for obtaining reflective information about
classes and objects.
Defines buffers, which are containers for data, and provides an
overview of the other NIO packages.
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.
Defines charsets, decoders, and encoders, for translating between
bytes and Unicode characters.
Defines interfaces and classes for the Java virtual machine to access files,
file attributes, and file systems.
Provides the RMI package.
Provides the classes and interfaces for the security framework.
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 parsing
and scanning classes, base64 encoding and decoding, a bit array, and
several miscellaneous utility classes.
Utility classes commonly useful in concurrent programming.
Classes for matching character sequences against patterns specified
by regular expressions.
Types and hierarchies of packages comprising a Java language model, a model of the declarations and types of the Java
programming 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 monitor classes.
Provides the open data types and Open MBean descriptor classes.
Provides classes and interfaces that describe the types of Java Print
Service attributes and how they can be collected into attribute sets.
Allows developers to provide support for undo/redo in applications such as
text editors.
Provides the classes for implementing
XML Catalogs OASIS Standard V1.1, 7 October 2005.
Common classes for XML cryptography.
Contains interfaces and classes that are used to link an
invokedynamic
call site.Defines the Service Provider Interface for pluggable JShell execution engines.
This package defines APIs for signing jar files.
Provides Java code the ability to access the JavaScript engine and the
HTML DOM in the web browser.
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.
-
Uses of RuntimeException in com.sun.jdi
Modifier and TypeClassDescriptionclass
Thrown to indicate that the requested operation cannot be completed because the specified class has not yet been prepared.class
Thrown to indicate that there is an inconistency in the debug information provided by the target VM.class
Thrown to indicate that an unexpected internal error has occurred.class
Deprecated.This exception is no longer thrownclass
Deprecated.This exception is no longer thrownclass
Thrown to indicate that the requested module is invalid or became invalid after the module was unloaded.class
Thrown to indicate that the requested operation cannot be completed because the specified stack frame is no longer valid.class
Thrown to indicate an operation cannot be completed because it is not valid for a native method.class
Thrown to indicate that the requested operation cannot be completed because the specified object has been garbage collected.class
Thrown to indicate an operation could not be performed on a frame.class
Thrown to indicate that the operation is invalid because it would modify the VM and the VM is read-only.class
Unchecked exception thrown to indicate that the requested operation cannot be completed because there is no longer a connection to the target VM.class
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
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
Modifier and TypeClassDescriptionclass
Thrown to indicate a duplicate event request.class
Thrown to indicate that the requested event cannot be modified because it is enabled. -
Uses of RuntimeException in com.sun.nio.sctp
Modifier and TypeClassDescriptionclass
Unchecked exception thrown when an attempt is made to invoke thereceive
method ofSctpChannel
orSctpMultiChannel
from a notification handler.class
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
Unchecked exception thrown when an attempt is made to send a message to an invalid stream. -
Uses of RuntimeException in java.awt
Modifier and TypeClassDescriptionclass
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
Signals that an AWT component is not in an appropriate state for the requested operation. -
Uses of RuntimeException in java.awt.color
Modifier and TypeClassDescriptionclass
This exception is thrown if the native CMM returns an error.class
This exception is thrown when an error occurs in accessing or processing anICC_Profile
object. -
Uses of RuntimeException in java.awt.dnd
Modifier and TypeClassDescriptionclass
This exception is thrown by various methods in the java.awt.dnd package. -
Uses of RuntimeException in java.awt.geom
Modifier and TypeClassDescriptionclass
TheIllegalPathStateException
represents an exception that is thrown if an operation is performed on a path that is in an illegal state with respect to the particular operation being performed, such as appending a path segment to aGeneralPath
without an initial moveto. -
Uses of RuntimeException in java.awt.image
Modifier and TypeClassDescriptionclass
TheImagingOpException
is thrown if one of theBufferedImageOp
orRasterOp
filter methods cannot process the image.class
TheRasterFormatException
is thrown if there is invalid layout information in theRaster
. -
Uses of RuntimeException in java.io
-
Uses of RuntimeException in java.lang
Modifier and TypeClassDescriptionclass
Thrown when an exceptional arithmetic condition has occurred.class
Thrown to indicate that an array has been accessed with an illegal index.class
Thrown to indicate that an attempt has been made to store the wrong type of object into an array of objects.class
Thrown to indicate that the code has attempted to cast an object to a subclass of which it is not an instance.class
Thrown when an application tries to access an enum constant by name and the enum type contains no constant with the specified name.class
Thrown to indicate that a method has been passed an illegal or inappropriate argument.class
Thrown to indicate that a method has been called by an inappropriate caller.class
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
Signals that a method has been invoked at an illegal or inappropriate time.class
Thrown to indicate that a thread is not in an appropriate state for the requested operation.class
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
Thrown when creating a module layer fails.final class
Thrown to indicate an unexpected failure in pattern matching.class
Thrown if an application tries to create an array with negative size.class
Thrown when an application attempts to usenull
in a case where an object is required.class
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
Thrown by the security manager to indicate a security violation.class
Thrown byString
methods to indicate that an index is either negative or greater than the size of the string.class
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
Thrown to indicate that the requested operation is not supported.final class
Thrown to indicate that a method has been called on the wrong thread.Modifier and TypeFieldDescriptionStringTemplate.RAW
ThisStringTemplate.Processor
PREVIEW instance is conventionally used to indicate that the processing of theStringTemplate
PREVIEW is to be deferred to a later time.static final StringTemplate.ProcessorPREVIEW
<String, RuntimeException> StringTemplate.STR
ThisStringTemplate.Processor
PREVIEW instance is conventionally used for the string interpolation of a suppliedStringTemplate
PREVIEW.Modifier and TypeMethodDescriptionstatic <T> StringTemplate.ProcessorPREVIEW
<T, RuntimeException> StringTemplate.Processor.of
(Function<? super StringTemplatePREVIEW, ? extends T> process) This factory method can be used to create aStringTemplate.Processor
PREVIEW containing aStringTemplate.Processor.process(java.lang.StringTemplate)
PREVIEW method derived from a lambda expression. -
Uses of RuntimeException in java.lang.annotation
Modifier and TypeClassDescriptionclass
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
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.instrument
Modifier and TypeClassDescriptionclass
Thrown to indicate that a module cannot be modified. -
Uses of RuntimeException in java.lang.invoke
Modifier and TypeClassDescriptionclass
Thrown to indicate that code has attempted to call a method handle via the wrong method type. -
Uses of RuntimeException in java.lang.module
Modifier and TypeClassDescriptionclass
Thrown by aModuleFinder
when an error occurs finding a module.class
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
Thrown when resolving a set of modules, or resolving a set of modules with service binding, fails. -
Uses of RuntimeException in java.lang.reflect
Modifier and TypeClassDescriptionclass
Thrown when Java language access checks cannot be suppressed.class
Thrown when a semantically malformed parameterized type is encountered by a reflective method that needs to instantiate it.class
Thrown whenthe java.lang.reflect package
attempts to read method parameters from a class file and determines that one or more parameters are malformed.class
Thrown by a method invocation on a proxy instance if its invocation handler'sinvoke
method throws a checked exception (aThrowable
that is not assignable toRuntimeException
orError
) that is not assignable to any of the exception types declared in thethrows
clause of the method that was invoked on the proxy instance and dispatched to the invocation handler. -
Uses of RuntimeException in java.nio
Modifier and TypeClassDescriptionclass
Unchecked exception thrown when a relative put operation reaches the target buffer's limit.class
Unchecked exception thrown when a relative get operation reaches the source buffer's limit.class
Unchecked exception thrown when an attempt is made to reset a buffer when its mark is not defined.class
Unchecked exception thrown when a content-mutation method such asput
orcompact
is invoked upon a read-only buffer. -
Uses of RuntimeException in java.nio.channels
Modifier and TypeClassDescriptionclass
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
Unchecked exception thrown when an attempt is made to bind the socket a network oriented channel that is already bound.class
Unchecked exception thrown when an attempt is made to connect aSocketChannel
that is already connected.class
Unchecked exception thrown when an attempt is made to use a selection key that is no longer valid.class
Unchecked exception thrown when an attempt is made to invoke an I/O operation upon a closed selector.class
Unchecked exception thrown when an attempt is made to connect aSocketChannel
for which a non-blocking connection operation is already in progress.class
Unchecked exception thrown when a blocking-mode-specific operation is invoked upon a channel in the incorrect blocking mode.class
Unchecked exception thrown when an attempt is made to open a channel in a group that was not created by the same provider.class
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
Unchecked exception thrown when thefinishConnect
method of aSocketChannel
is invoked without first successfully invoking itsconnect
method.class
Unchecked exception thrown when an attempt is made to read from a channel that was not originally opened for reading.class
Unchecked exception thrown when an attempt is made to write to a channel that was not originally opened for writing.class
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
Unchecked exception thrown when an attempt is made to invoke an I/O operation upon a socket channel that is not yet connected.class
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
Unchecked exception thrown when an attempt is made to read from an asynchronous socket channel and a previous read has not completed.class
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
Unchecked exception thrown when an attempt is made to invoke a network operation upon an unresolved socket address.class
Unchecked exception thrown when an attempt is made to bind or connect to a socket address of a type that is not supported.class
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
Modifier and TypeClassDescriptionclass
Unchecked exception thrown when a string that is not a legal charset name is used as such.class
Unchecked exception thrown when no support is available for a requested charset. -
Uses of RuntimeException in java.nio.file
Modifier and TypeClassDescriptionclass
Unchecked exception thrown when an attempt is made to invoke an operation on a directory stream that is closed.class
Unchecked exception thrown when an attempt is made to invoke an operation on a file and the file system is closed.class
Unchecked exception thrown when an attempt is made to invoke an operation on a watch service that is closed.final class
Runtime exception thrown if an I/O error is encountered when iterating over the entries in a directory.class
Runtime exception thrown when an attempt is made to create a file system that already exists.class
Runtime exception thrown when a file system cannot be found.class
Unchecked exception thrown when path string cannot be converted into aPath
because the path string contains invalid characters, or the path string is invalid for other file system specific reasons.class
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
Runtime exception thrown when a provider of the required type cannot be found.class
Unchecked exception thrown when an attempt is made to update an object associated with aread-only
FileSystem
. -
Uses of RuntimeException in java.rmi
-
Uses of RuntimeException in java.security
Modifier and TypeClassDescriptionclass
Deprecated, for removal: This API element is subject to removal in a future version.This class is only useful in conjunction with the Security Manager, which is deprecated and subject to removal in a future release.class
This exception, designed for use by the JCA/JCE engine classes, is thrown when an invalid parameter is passed to a method.class
A runtime exception forProvider
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
Modifier and TypeClassDescriptionclass
Exception used to indicate a problem while calculating a date-time. -
Uses of RuntimeException in java.time.format
Modifier and TypeClassDescriptionclass
An exception thrown when an error occurs during parsing. -
Uses of RuntimeException in java.time.temporal
Modifier and TypeClassDescriptionclass
UnsupportedTemporalTypeException indicates that a ChronoField or ChronoUnit is not supported for a Temporal class. -
Uses of RuntimeException in java.time.zone
Modifier and TypeClassDescriptionclass
Thrown to indicate a problem with time-zone configuration. -
Uses of RuntimeException in java.util
Modifier and TypeClassDescriptionclass
This exception may be thrown by methods that have detected concurrent modification of an object when such modification is not permissible.class
Unchecked exception thrown when duplicate flags are provided in the format specifier.class
Thrown by methods in theStack
class to indicate that the stack is empty.class
Unchecked exception thrown when a conversion and flag are incompatible.class
Unchecked exception thrown when the formatter has been closed.class
Unchecked exception thrown when a character with an invalid Unicode code point as defined byCharacter.isValidCodePoint(int)
is passed to theFormatter
.class
Unchecked exception thrown when the argument corresponding to the format specifier is of an incompatible type.class
Unchecked exception thrown when a format string contains an illegal syntax or a format specifier that is incompatible with the given arguments.class
Unchecked exception thrown when an illegal combination flags is given.class
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
Unchecked exception thrown when the format width is a negative value other than-1
or is otherwise unsupported.class
Thrown by methods inLocale
andLocale.Builder
to indicate that an argument is not a well-formed BCP 47 tag.class
Thrown by aScanner
to indicate that the token retrieved does not match the pattern for the expected type, or that the token is out of range for the expected type.class
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
Unchecked exception thrown when the format width is required.class
Signals that a resource is missing.class
Thrown by various accessor methods to indicate that the element being requested does not exist.class
Unchecked exception thrown when an unknown conversion is given.class
Unchecked exception thrown when an unknown flag is given. -
Uses of RuntimeException in java.util.concurrent
Modifier and TypeClassDescriptionclass
Exception indicating that the result of a value-producing task, such as aFutureTask
, cannot be retrieved because the task was cancelled.class
Exception thrown when an error or other exception is encountered in the course of completing a result or task.class
Exception thrown by anExecutor
when a task cannot be accepted for execution.final class
Preview.Thrown when a structure violation is detected. -
Uses of RuntimeException in java.util.regex
Modifier and TypeClassDescriptionclass
Unchecked exception thrown to indicate a syntax error in a regular-expression pattern. -
Uses of RuntimeException in javax.lang.model
Modifier and TypeClassDescriptionclass
Superclass of exceptions which indicate that an unknown kind of entity was encountered. -
Uses of RuntimeException in javax.lang.model.element
Modifier and TypeClassDescriptionclass
Indicates that an unknown kind of annotation value was encountered.class
Indicates that an unknown kind of module directive was encountered.class
Indicates that an unknown kind of element was encountered. -
Uses of RuntimeException in javax.lang.model.type
Modifier and TypeClassDescriptionclass
Thrown when an application attempts to access theClass
object corresponding to aTypeMirror
.class
Thrown when an application attempts to access a sequence ofClass
objects each corresponding to aTypeMirror
.class
Indicates that an unknown kind of type was encountered. -
Uses of RuntimeException in javax.management
Modifier and TypeClassDescriptionclass
Runtime exceptions emitted by JMX implementations.class
When ajava.lang.Error
occurs in the agent it should be caught and re-thrown as aRuntimeErrorException
.class
Represents runtime exceptions thrown by MBean methods in the agent.class
Represents runtime exceptions thrown in the agent when performing operations on MBeans.Modifier and TypeMethodDescriptionRuntimeMBeanException.getTargetException()
Returns the actualRuntimeException
thrown.RuntimeOperationsException.getTargetException()
Returns the actualRuntimeException
thrown.ModifierConstructorDescriptionCreates aRuntimeMBeanException
that wraps the actualjava.lang.RuntimeException
.RuntimeMBeanException
(RuntimeException e, String message) Creates aRuntimeMBeanException
that wraps the actualjava.lang.RuntimeException
with a detailed message.Creates aRuntimeOperationsException
that wraps the actualjava.lang.RuntimeException
.RuntimeOperationsException
(RuntimeException e, String message) Creates aRuntimeOperationsException
that wraps the actualjava.lang.RuntimeException
with a detailed message. -
Uses of RuntimeException in javax.management.monitor
Modifier and TypeClassDescriptionclass
Exception thrown by the monitor when a monitor setting becomes invalid while the monitor is running. -
Uses of RuntimeException in javax.management.openmbean
Modifier and TypeClassDescriptionclass
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
This runtime exception is thrown to indicate that the open type of an open data value is not the one expected.class
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
Modifier and TypeClassDescriptionclass
Thrown to indicate that the requested operation cannot be performed because the set is unmodifiable. -
Uses of RuntimeException in javax.swing.undo
Modifier and TypeClassDescriptionclass
Thrown when an UndoableEdit is told toredo()
and can't.class
Thrown when an UndoableEdit is told toundo()
and can't. -
Uses of RuntimeException in javax.xml.catalog
Modifier and TypeClassDescriptionclass
The exception class handles errors that may happen while processing or using a catalog. -
Uses of RuntimeException in javax.xml.crypto
Modifier and TypeClassDescriptionclass
This exception is thrown when a particular XML mechanism is requested but is not available in the environment. -
Uses of RuntimeException in jdk.dynalink
Modifier and TypeClassDescriptionclass
Thrown at the invocation if the call site can not be linked by any availableGuardingDynamicLinker
. -
Uses of RuntimeException in jdk.jshell.spi
Modifier and TypeClassDescriptionclass
The construction and throw of this exception is embedded in code generated by the JShell core implementation in such a way that, upon executing aRECOVERABLE_DEFINED
user method, this exception is thrown. -
Uses of RuntimeException in jdk.security.jarsigner
Modifier and TypeClassDescriptionclass
This exception is thrown whenJarSigner.sign(java.util.zip.ZipFile, java.io.OutputStream)
fails. -
Uses of RuntimeException in netscape.javascript
Modifier and TypeClassDescriptionclass
Thrown when an exception is raised in the JavaScript engine. -
Uses of RuntimeException in org.w3c.dom
Modifier and TypeClassDescriptionclass
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
Modifier and TypeClassDescriptionclass
Event operations may throw anEventException
as specified in their method descriptions. -
Uses of RuntimeException in org.w3c.dom.ls
Modifier and TypeClassDescriptionclass
Parser or write operations may throw anLSException
if the processing is stopped. -
Uses of RuntimeException in org.w3c.dom.ranges
Modifier and TypeClassDescriptionclass
Range operations may throw aRangeException
as specified in their method descriptions. -
Uses of RuntimeException in org.w3c.dom.xpath
Modifier and TypeClassDescriptionclass
A new exception has been created for exceptions specific to these XPath interfaces.