Package java.lang

Class SecurityException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AccessControlException

public class SecurityException
extends RuntimeException
Thrown when a security manager check fails.
See Also:
Serialized Form
  • Constructor Details

    • SecurityException

      public SecurityException()
      Constructs a new SecurityException that includes the current stack trace.
    • SecurityException

      public SecurityException​(String detailMessage)
      Constructs a new SecurityException with the current stack trace and the specified detail message.
      Parameters:
      detailMessage - the detail message for this exception.
    • SecurityException

      public SecurityException​(String message, Throwable cause)
      Constructs a new SecurityException with the current stack trace, the specified detail message and the specified cause.
      Parameters:
      message - the detail message for this exception.
      cause - the optional cause of this exception, may be null.
      Since:
      1.5
    • SecurityException

      public SecurityException​(Throwable cause)
      Constructs a new SecurityException with the current stack trace and the specified cause.
      Parameters:
      cause - the optional cause of this exception, may be null.
      Since:
      1.5