# RuntimeException

public class **RuntimeException** extends [Exception](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Exception.html)  

|---|---|---|
| Known Direct Subclasses [AnnotationTypeMismatchException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/annotation/AnnotationTypeMismatchException.html), [ArithmeticException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/ArithmeticException.html), [ArrayStoreException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/ArrayStoreException.html), [BufferOverflowException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/BufferOverflowException.html), [BufferUnderflowException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/BufferUnderflowException.html), [ClassCastException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/ClassCastException.html), [CompletionException](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/concurrent/CompletionException.html), [ConcurrentModificationException](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/ConcurrentModificationException.html), [DOMException](https://developers.google.com/j2objc/javadoc/jre/reference/org/w3c/dom/DOMException.html), [DateTimeException](https://developers.google.com/j2objc/javadoc/jre/reference/java/time/DateTimeException.html), [EmptyStackException](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/EmptyStackException.html), [EnumConstantNotPresentException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/EnumConstantNotPresentException.html), [FileSystemAlreadyExistsException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileSystemAlreadyExistsException.html), [FileSystemNotFoundException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileSystemNotFoundException.html), [IllegalArgumentException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/IllegalArgumentException.html), and [19 others.](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/RuntimeException#) |---|---| | [AnnotationTypeMismatchException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/annotation/AnnotationTypeMismatchException.html) | 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). | | [ArithmeticException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/ArithmeticException.html) | Thrown when an exceptional arithmetic condition has occurred. | | [ArrayStoreException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/ArrayStoreException.html) | Thrown to indicate that an attempt has been made to store the wrong type of object into an array of objects. | | [BufferOverflowException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/BufferOverflowException.html) | Unchecked exception thrown when a relative *put* operation reaches the target buffer's limit. | | [BufferUnderflowException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/BufferUnderflowException.html) | Unchecked exception thrown when a relative *get* operation reaches the source buffer's limit. | | [ClassCastException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/ClassCastException.html) | Thrown to indicate that the code has attempted to cast an object to a subclass of which it is not an instance. | | [CompletionException](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/concurrent/CompletionException.html) | Exception thrown when an error or other exception is encountered in the course of completing a result or task. | | [ConcurrentModificationException](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/ConcurrentModificationException.html) | This exception may be thrown by methods that have detected concurrent modification of an object when such modification is not permissible. | | [DOMException](https://developers.google.com/j2objc/javadoc/jre/reference/org/w3c/dom/DOMException.html) | 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). | | [DateTimeException](https://developers.google.com/j2objc/javadoc/jre/reference/java/time/DateTimeException.html) | Exception used to indicate a problem while calculating a date-time. | | [EmptyStackException](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/EmptyStackException.html) | Thrown by methods in the `Stack` class to indicate that the stack is empty. | | [EnumConstantNotPresentException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/EnumConstantNotPresentException.html) | Thrown when an application tries to access an enum constant by name and the enum type contains no constant with the specified name. | | [FileSystemAlreadyExistsException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileSystemAlreadyExistsException.html) | Runtime exception thrown when an attempt is made to create a file system that already exists. | | [FileSystemNotFoundException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileSystemNotFoundException.html) | Runtime exception thrown when a file system cannot be found. | | [IllegalArgumentException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/IllegalArgumentException.html) | Thrown to indicate that a method has been passed an illegal or inappropriate argument. | | [IllegalMonitorStateException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/IllegalMonitorStateException.html) | 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. | | [IllegalStateException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/IllegalStateException.html) | Signals that a method has been invoked at an illegal or inappropriate time. | | [IllformedLocaleException](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/IllformedLocaleException.html) | Thrown by methods in `https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Locale.html` and `https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Locale.Builder.html` to indicate that an argument is not a well-formed BCP 47 tag. | | [IncompleteAnnotationException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/annotation/IncompleteAnnotationException.html) | 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). | | [IndexOutOfBoundsException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/IndexOutOfBoundsException.html) | 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. | | [LSException](https://developers.google.com/j2objc/javadoc/jre/reference/org/w3c/dom/ls/LSException.html) | Parser or write operations may throw an `LSException` if the processing is stopped. | | [MalformedParameterizedTypeException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/reflect/MalformedParameterizedTypeException.html) | Thrown when a semantically malformed parameterized type is encountered by a reflective method that needs to instantiate it. | | [MissingResourceException](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/MissingResourceException.html) | Signals that a resource is missing. | | [NegativeArraySizeException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/NegativeArraySizeException.html) | Thrown if an application tries to create an array with negative size. | | [NoSuchElementException](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/NoSuchElementException.html) | Thrown by various accessor methods to indicate that the element being requested does not exist. | | [NullPointerException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/NullPointerException.html) | Thrown when an application attempts to use `null` in a case where an object is required. | | [ProviderException](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/ProviderException.html) | 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. | | [ProviderNotFoundException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/ProviderNotFoundException.html) | Runtime exception thrown when a provider of the required type cannot be found. | | [RejectedExecutionException](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/concurrent/RejectedExecutionException.html) | Exception thrown by an `https://developers.google.com/j2objc/javadoc/jre/reference/java/util/concurrent/Executor.html` when a task cannot be accepted for execution. | | [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | Thrown by the security manager to indicate a security violation. | | [TypeNotPresentException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/TypeNotPresentException.html) | 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. | | [UncheckedIOException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/UncheckedIOException.html) | Wraps an `https://developers.google.com/j2objc/javadoc/jre/reference/java/io/IOException.html` with an unchecked exception. | | [UndeclaredThrowableException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/reflect/UndeclaredThrowableException.html) | Thrown by a method invocation on a proxy instance if its invocation handler's `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/reflect/InvocationHandler.html#invoke(java.lang.Object,%20java.lang.reflect.Method,%20java.lang.Object[])` 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. | | [UnsupportedOperationException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/UnsupportedOperationException.html) | Thrown to indicate that the requested operation is not supported. | |||

|---|---|---|
| Known Indirect Subclasses [AcceptPendingException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/AcceptPendingException.html), [AccessControlException](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/AccessControlException.html), [AlreadyBoundException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/AlreadyBoundException.html), [AlreadyConnectedException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/AlreadyConnectedException.html), [ArrayIndexOutOfBoundsException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/ArrayIndexOutOfBoundsException.html), [CancellationException](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/concurrent/CancellationException.html), [CancelledKeyException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/CancelledKeyException.html), [ClosedDirectoryStreamException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/ClosedDirectoryStreamException.html), [ClosedFileSystemException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/ClosedFileSystemException.html), [ClosedSelectorException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/ClosedSelectorException.html), [ClosedWatchServiceException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/ClosedWatchServiceException.html), [ConnectionPendingException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/ConnectionPendingException.html), [DateTimeParseException](https://developers.google.com/j2objc/javadoc/jre/reference/java/time/format/DateTimeParseException.html), [DirectoryIteratorException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/DirectoryIteratorException.html), [DuplicateFormatFlagsException](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/DuplicateFormatFlagsException.html), and [41 others.](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/RuntimeException#) |---|---| | [AcceptPendingException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/AcceptPendingException.html) | Unchecked exception thrown when an attempt is made to initiate an accept operation on a channel and a previous accept operation has not completed. | | [AccessControlException](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/AccessControlException.html) | 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. | | [AlreadyBoundException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/AlreadyBoundException.html) | Unchecked exception thrown when an attempt is made to bind the socket a network oriented channel that is already bound. | | [AlreadyConnectedException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/AlreadyConnectedException.html) | Unchecked exception thrown when an attempt is made to connect a `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/SocketChannel.html` that is already connected. | | [ArrayIndexOutOfBoundsException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/ArrayIndexOutOfBoundsException.html) | Thrown to indicate that an array has been accessed with an illegal index. | | [CancellationException](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/concurrent/CancellationException.html) | Exception indicating that the result of a value-producing task, such as a `https://developers.google.com/j2objc/javadoc/jre/reference/java/util/concurrent/FutureTask.html`, cannot be retrieved because the task was cancelled. | | [CancelledKeyException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/CancelledKeyException.html) | Unchecked exception thrown when an attempt is made to use a selection key that is no longer valid. | | [ClosedDirectoryStreamException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/ClosedDirectoryStreamException.html) | Unchecked exception thrown when an attempt is made to invoke an operation on a directory stream that is closed. | | [ClosedFileSystemException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/ClosedFileSystemException.html) | Unchecked exception thrown when an attempt is made to invoke an operation on a file and the file system is closed. | | [ClosedSelectorException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/ClosedSelectorException.html) | Unchecked exception thrown when an attempt is made to invoke an I/O operation upon a closed selector. | | [ClosedWatchServiceException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/ClosedWatchServiceException.html) | Unchecked exception thrown when an attempt is made to invoke an operation on a watch service that is closed. | | [ConnectionPendingException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/ConnectionPendingException.html) | Unchecked exception thrown when an attempt is made to connect a `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/SocketChannel.html` for which a non-blocking connection operation is already in progress. | | [DateTimeParseException](https://developers.google.com/j2objc/javadoc/jre/reference/java/time/format/DateTimeParseException.html) | An exception thrown when an error occurs during parsing. | | [DirectoryIteratorException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/DirectoryIteratorException.html) | Runtime exception thrown if an I/O error is encountered when iterating over the entries in a directory. | | [DuplicateFormatFlagsException](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/DuplicateFormatFlagsException.html) | Unchecked exception thrown when duplicate flags are provided in the format specifier. | | [FormatFlagsConversionMismatchException](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/FormatFlagsConversionMismatchException.html) | Unchecked exception thrown when a conversion and flag are incompatible. | | [FormatterClosedException](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/FormatterClosedException.html) | Unchecked exception thrown when the formatter has been closed. | | [IllegalBlockingModeException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/IllegalBlockingModeException.html) | Unchecked exception thrown when a blocking-mode-specific operation is invoked upon a channel in the incorrect blocking mode. | | [IllegalChannelGroupException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/IllegalChannelGroupException.html) | Unchecked exception thrown when an attempt is made to open a channel in a group that was not created by the same provider. | | [IllegalCharsetNameException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/charset/IllegalCharsetNameException.html) | Unchecked exception thrown when a string that is not a [legal charset name](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Charset#names) is used as such. | | [IllegalFormatCodePointException](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/IllegalFormatCodePointException.html) | Unchecked exception thrown when a character with an invalid Unicode code point as defined by `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Character.html#isValidCodePoint(int)` is passed to the `https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Formatter.html`. | | [IllegalFormatConversionException](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/IllegalFormatConversionException.html) | Unchecked exception thrown when the argument corresponding to the format specifier is of an incompatible type. | | [IllegalFormatException](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/IllegalFormatException.html) | Unchecked exception thrown when a format string contains an illegal syntax or a format specifier that is incompatible with the given arguments. | | [IllegalFormatFlagsException](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/IllegalFormatFlagsException.html) | Unchecked exception thrown when an illegal combination flags is given. | | [IllegalFormatPrecisionException](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/IllegalFormatPrecisionException.html) | 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. | | [IllegalFormatWidthException](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/IllegalFormatWidthException.html) | Unchecked exception thrown when the format width is a negative value other than -1 or is otherwise unsupported. | | [IllegalSelectorException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/IllegalSelectorException.html) | 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. | | [IllegalThreadStateException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/IllegalThreadStateException.html) | Thrown to indicate that a thread is not in an appropriate state for the requested operation. | | [InputMismatchException](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/InputMismatchException.html) | 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. | | [InvalidMarkException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/InvalidMarkException.html) | Unchecked exception thrown when an attempt is made to reset a buffer when its mark is not defined. | | [InvalidParameterException](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/InvalidParameterException.html) | This exception, designed for use by the JCA/JCE engine classes, is thrown when an invalid parameter is passed to a method. | | [InvalidPathException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/InvalidPathException.html) | Unchecked exception thrown when path string cannot be converted into a `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html` because the path string contains invalid characters, or the path string is invalid for other file system specific reasons. | | [MissingFormatArgumentException](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/MissingFormatArgumentException.html) | 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. | | [MissingFormatWidthException](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/MissingFormatWidthException.html) | Unchecked exception thrown when the format width is required. | | [NoConnectionPendingException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/NoConnectionPendingException.html) | Unchecked exception thrown when the `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/SocketChannel.html#finishConnect()` method of a `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/SocketChannel.html` is invoked without first successfully invoking its `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/SocketChannel.html#connect(java.net.SocketAddress)` method. | | [NonReadableChannelException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/NonReadableChannelException.html) | Unchecked exception thrown when an attempt is made to read from a channel that was not originally opened for reading. | | [NonWritableChannelException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/NonWritableChannelException.html) | Unchecked exception thrown when an attempt is made to write to a channel that was not originally opened for writing. | | [NotYetBoundException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/NotYetBoundException.html) | Unchecked exception thrown when an attempt is made to invoke an I/O operation upon a server socket channel that is not yet bound. | | [NotYetConnectedException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/NotYetConnectedException.html) | Unchecked exception thrown when an attempt is made to invoke an I/O operation upon a socket channel that is not yet connected. | | [NumberFormatException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/NumberFormatException.html) | 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. | | [OverlappingFileLockException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/OverlappingFileLockException.html) | 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. | | [PatternSyntaxException](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/regex/PatternSyntaxException.html) | Unchecked exception thrown to indicate a syntax error in a regular-expression pattern. | | [ProviderMismatchException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/ProviderMismatchException.html) | 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. | | [ReadOnlyBufferException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/ReadOnlyBufferException.html) | Unchecked exception thrown when a content-mutation method such as put or compact is invoked upon a read-only buffer. | | [ReadOnlyFileSystemException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/ReadOnlyFileSystemException.html) | Unchecked exception thrown when an attempt is made to update an object associated with a `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileSystem.html#isReadOnly()` `FileSystem`. | | [ReadPendingException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/ReadPendingException.html) | Unchecked exception thrown when an attempt is made to read from an asynchronous socket channel and a previous read has not completed. | | [ShutdownChannelGroupException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/ShutdownChannelGroupException.html) | 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. | | [StringIndexOutOfBoundsException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/StringIndexOutOfBoundsException.html) | Thrown by `String` methods to indicate that an index is either negative or greater than the size of the string. | | [UnknownFormatConversionException](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/UnknownFormatConversionException.html) | Unchecked exception thrown when an unknown conversion is given. | | [UnknownFormatFlagsException](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/UnknownFormatFlagsException.html) | Unchecked exception thrown when an unknown flag is given. | | [UnresolvedAddressException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/UnresolvedAddressException.html) | Unchecked exception thrown when an attempt is made to invoke a network operation upon an unresolved socket address. | | [UnsupportedAddressTypeException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/UnsupportedAddressTypeException.html) | Unchecked exception thrown when an attempt is made to bind or connect to a socket address of a type that is not supported. | | [UnsupportedCharsetException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/charset/UnsupportedCharsetException.html) | Unchecked exception thrown when no support is available for a requested charset. | | [UnsupportedTemporalTypeException](https://developers.google.com/j2objc/javadoc/jre/reference/java/time/temporal/UnsupportedTemporalTypeException.html) | UnsupportedTemporalTypeException indicates that a ChronoField or ChronoUnit is not supported for a Temporal class. | | [WritePendingException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/WritePendingException.html) | Unchecked exception thrown when an attempt is made to write to an asynchronous socket channel and a previous write has not completed. | | [ZoneRulesException](https://developers.google.com/j2objc/javadoc/jre/reference/java/time/zone/ZoneRulesException.html) | Thrown to indicate a problem with time-zone configuration. | |||

`RuntimeException` is the superclass of those
exceptions that can be thrown during the normal operation of the
Java Virtual Machine.

`RuntimeException` and its subclasses are *unchecked
exceptions* . Unchecked exceptions do *not* need to be
declared in a method or constructor's `throws` clause if they
can be thrown by the execution of the method or constructor and
propagate outside the method or constructor boundary.

### Public Constructor Summary

|---|---|
|   | [RuntimeException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/RuntimeException.html#RuntimeException())() Constructs a new runtime exception with `null` as its detail message. |
|   | [RuntimeException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/RuntimeException.html#RuntimeException(java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) message) Constructs a new runtime exception with the specified detail message. |
|   | [RuntimeException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/RuntimeException.html#RuntimeException(java.lang.String,%20java.lang.Throwable))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) message, [Throwable](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html) cause) Constructs a new runtime exception with the specified detail message and cause. |
|   | [RuntimeException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/RuntimeException.html#RuntimeException(java.lang.Throwable))([Throwable](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html) cause) Constructs a new runtime exception with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause). |

### Protected Constructor Summary

|---|---|
|   | [RuntimeException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/RuntimeException.html#RuntimeException(java.lang.String,%20java.lang.Throwable,%20boolean,%20boolean))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) message, [Throwable](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html) cause, boolean enableSuppression, boolean writableStackTrace) Constructs a new runtime exception with the specified detail message, cause, suppression enabled or disabled, and writable stack trace enabled or disabled. |

### Inherited Method Summary

From class [java.lang.Throwable](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html)

|---|---|
| synchronized final void | [addSuppressed](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#addSuppressed(java.lang.Throwable))([Throwable](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html) exception) Appends the specified exception to the exceptions that were suppressed in order to deliver this exception. |
| synchronized [Throwable](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html) | [fillInStackTrace](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#fillInStackTrace())() Fills in the execution stack trace. |
| synchronized [Throwable](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html) | [getCause](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#getCause())() Returns the cause of this throwable or `null` if the cause is nonexistent or unknown. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getLocalizedMessage](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#getLocalizedMessage())() Creates a localized description of this throwable. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getMessage](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#getMessage())() Returns the detail message string of this throwable. |
| StackTraceElement\[\] | [getStackTrace](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#getStackTrace())() Provides programmatic access to the stack trace information printed by `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#printStackTrace()`. |
| synchronized final [Throwable\[\]](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html) | [getSuppressed](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#getSuppressed())() Returns an array containing all of the exceptions that were suppressed, typically by the `try`-with-resources statement, in order to deliver this exception. |
| synchronized [Throwable](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html) | [initCause](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#initCause(java.lang.Throwable))([Throwable](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html) cause) Initializes the *cause* of this throwable to the specified value. |
| void | [printStackTrace](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#printStackTrace())() Prints this throwable and its backtrace to the standard error stream. |
| void | [printStackTrace](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#printStackTrace(java.io.PrintWriter))([PrintWriter](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/PrintWriter.html) s) Prints this throwable and its backtrace to the specified print writer. |
| void | [printStackTrace](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#printStackTrace(java.io.PrintStream))([PrintStream](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/PrintStream.html) s) Prints this throwable and its backtrace to the specified print stream. |
| void | [setStackTrace](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#setStackTrace(java.lang.StackTraceElement[]))(StackTraceElement\[\] stackTrace) Sets the stack trace elements that will be returned by `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#getStackTrace()` and printed by `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#printStackTrace()` and related methods. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [toString](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#toString())() Returns a short description of this throwable. |

From class [java.lang.Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)

|---|---|
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [clone](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#clone())() Creates and returns a copy of this `Object`. |
| boolean | [equals](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#equals(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) obj) Compares this instance with the specified object and indicates if they are equal. |
| void | [finalize](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#finalize())() Invoked when the garbage collector has detected that this instance is no longer reachable. |
| final [Class](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html)\<?\> | [getClass](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#getClass())() Returns the unique instance of `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html` that represents this object's class. |
| int | [hashCode](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#hashCode())() Returns an integer hash code for this object. |
| final void | [notify](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notify())() Causes a thread which is waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| final void | [notifyAll](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notifyAll())() Causes all threads which are waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [toString](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#toString())() Returns a string containing a concise, human-readable description of this object. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long,%20int))(long timeout, int nanos) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long))(long timeout) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait())() Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object. |

## Public Constructors

#### public
**RuntimeException**
()

Constructs a new runtime exception with `null` as its
detail message. The cause is not initialized, and may subsequently be
initialized by a call to `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#initCause(java.lang.Throwable)`.

#### public
**RuntimeException**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) message)

Constructs a new runtime exception with the specified detail message.
The cause is not initialized, and may subsequently be initialized by a
call to `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#initCause(java.lang.Throwable)`.

##### Parameters

| message | the detail message. The detail message is saved for later retrieval by the `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#getMessage()` method. |
|---|---|

#### public
**RuntimeException**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) message, [Throwable](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html) cause)

Constructs a new runtime exception with the specified detail message and
cause.

Note that the detail message associated with
`cause` is *not* automatically incorporated in
this runtime exception's detail message.

##### Parameters

| message | the detail message (which is saved for later retrieval by the `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#getMessage()` method). |
| cause | the cause (which is saved for later retrieval by the `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#getCause()` method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.) |
|---|---|

#### public
**RuntimeException**
([Throwable](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html) cause)

Constructs a new runtime exception with the specified cause and a
detail message of (cause==null ? null : cause.toString())
(which typically contains the class and detail message of
cause). This constructor is useful for runtime exceptions
that are little more than wrappers for other throwables.

##### Parameters

| cause | the cause (which is saved for later retrieval by the `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#getCause()` method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.) |
|---|---|

## Protected Constructors

#### protected
**RuntimeException**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) message, [Throwable](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html) cause, boolean enableSuppression, boolean writableStackTrace)

Constructs a new runtime exception with the specified detail
message, cause, suppression enabled or disabled, and writable
stack trace enabled or disabled.

##### Parameters

| message | the detail message. |
| cause | the cause. (A `null` value is permitted, and indicates that the cause is nonexistent or unknown.) |
| enableSuppression | whether or not suppression is enabled or disabled |
| writableStackTrace | whether or not the stack trace should be writable |
|---|---|