Class JKInvalidUserException

All Implemented Interfaces:
JKNonPrintableException, Serializable

public class JKInvalidUserException extends JKSecurityException
This class represents exception thrown to indicate an invalid user is encountered.

This exception is a subclass of JKSecurityException.

This class should be used to represent situations where an operation involving an invalid user is attempted.

Version:
1.0
Author:
Dr. Jalal H. Kiswani
See Also:
  • Constructor Details

    • JKInvalidUserException

      public JKInvalidUserException()
      This method constructs a new JKInvalidUserException without any specified errors or causes.

      This constructor is typically used when the exception is thrown to represent a specific error condition without additional details.

    • JKInvalidUserException

      public JKInvalidUserException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
      This method constructs a JKInvalidUserException with a specific error message, cause, suppression behavior, and stack trace writability.
      Parameters:
      message - Specifies the error message explaining the invalid user situation.
      cause - Specifies the cause of this exception.
      enableSuppression - Specifies whether suppression is enabled or disabled.
      writableStackTrace - Specifies whether the stack trace should be writable.
    • JKInvalidUserException

      public JKInvalidUserException(String message, Throwable cause)
      This method constructs a JKInvalidUserException with a specific error message and a cause.
      Parameters:
      message - Specifies the error message explaining the invalid user situation.
      cause - Specifies the cause of this exception.
    • JKInvalidUserException

      public JKInvalidUserException(String message)
      This method constructs a JKInvalidUserException with a specific error message.
      Parameters:
      message - Specifies the error message explaining the invalid user situation.
    • JKInvalidUserException

      public JKInvalidUserException(Throwable cause)
      This method constructs a JKInvalidUserException with a cause.
      Parameters:
      cause - Specifies the cause of this exception.
  • Method Details

    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable
      Returns:
      the detail message string of this Throwable instance(which may be null)