Module java.base
Package java.lang

Class RuntimeException

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
        RuntimeException​()
      Constructs a new runtime exception with null as its detail message.
        RuntimeException​(String message)
      Constructs a new runtime exception with the specified detail message.
        RuntimeException​(String message, Throwable cause)
      Constructs a new runtime exception with the specified detail message and cause.
      protected RuntimeException​(String message, Throwable 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.
        RuntimeException​(Throwable 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).