public class RuntimeException

  1. Object
  2. Throwable
  3. Exception
  4. RuntimeException

Known subtypesInferenceException, VisionException, HealthConfigurationException, GrpcException, AsyncMedia.MediaException, CryptoException, AsyncResource.AsyncExecutionException, AsyncResource.CancellationException, RESyntaxException, ArithmeticException, ArrayStoreException, ClassCastException, IllegalArgumentException, IllegalMonitorStateException, IllegalStateException, IndexOutOfBoundsException, NegativeArraySizeException, NullPointerException, SecurityException, UnsupportedOperationException, IncompleteAnnotationException, DateTimeException, ConcurrentModificationException, EmptyStackException, NoSuchElementException

RuntimeException is the superclass of those exceptions that can be thrown during the normal operation of the Java Virtual Machine. A method is not required to declare in its throws clause any subclasses of RuntimeException that might be thrown during the execution of the method but not caught. Since: JDK1.0, CLDC 1.0

Constructors

public RuntimeException()Constructs a RuntimeException with no detail message.
public RuntimeException(String s)Constructs a RuntimeException with the specified detail message.
public RuntimeException(Throwable cause)Constructs a RuntimeException with specified cause.
public RuntimeException(String s, Throwable cause)Constructs a RuntimeException with the specified detail message and cause.

Inherited methods

Constructor details

RuntimeException

public RuntimeException()
Constructs a RuntimeException with no detail message.

RuntimeException

public RuntimeException(String s)
Constructs a RuntimeException with the specified detail message. s - the detail message.

RuntimeException

public RuntimeException(Throwable cause)
Constructs a RuntimeException with specified cause.

Parameters

cause Throwable
The cause of the exception.

RuntimeException

public RuntimeException(String s, Throwable cause)
Constructs a RuntimeException with the specified detail message and cause. s - the detail message. cause The cause of the exception.