Class SecurityException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    PasswordExpiredException

    public class SecurityException
    extends com.lexmark.saperion.exceptions.system.SystemException
    Security base exception.
    Author:
    owaeldrich
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  SecurityException.SecurityError
      Error code implementation for security exceptions.
      • Nested classes/interfaces inherited from class com.lexmark.saperion.exceptions.system.SystemException

        com.lexmark.saperion.exceptions.system.SystemException.SystemError
    • Field Summary

      • Fields inherited from class com.lexmark.saperion.exceptions.system.SystemException

        SYSTEM_GENERAL_ERROR
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
        SecurityException()
      Default constuctor.
        SecurityException​(com.lexmark.saperion.exceptions.ErrorType fault, java.lang.Throwable cause)
      Exception factory constructor.
      protected SecurityException​(SecurityException.SecurityError errorCode)
      Creates a new exception with the given error code.
      protected SecurityException​(SecurityException.SecurityError errorCode, com.lexmark.saperion.exceptions.ErrorDetailsType errorDetails, java.lang.String message, java.lang.Throwable cause)
      Creates a new exception with the given error code, error details, exception cause and exception message.
      protected SecurityException​(SecurityException.SecurityError errorCode, com.lexmark.saperion.exceptions.ErrorDetailsType errorDetails, java.util.Map<java.lang.String,​java.lang.String> parameters, java.lang.String message, java.lang.Throwable cause)
      Creates a new exception with the given error code, error details, error parameters, exception cause and exception message.
      protected SecurityException​(SecurityException.SecurityError errorCode, java.lang.String message)
      Creates a new exception with the given error code and exception message.
      protected SecurityException​(SecurityException.SecurityError errorCode, java.lang.Throwable cause)
      Creates a new exception with the given error code and exception cause.
        SecurityException​(com.lexmark.saperion.exceptions.system.SystemException.SystemError errorCode)
      Creates a new exception with the given error code.
        SecurityException​(com.lexmark.saperion.exceptions.system.SystemException.SystemError errorCode, java.lang.String message)
      Creates a new exception with the given error code and exception message.
        SecurityException​(java.lang.String message)
      Creates a new exception with the given exception message.
        SecurityException​(java.lang.String message, java.lang.Throwable cause, com.lexmark.saperion.exceptions.ErrorDetailsType errorDetails)
      Creates a new exception with the given error details, exception cause and exception message.
        SecurityException​(java.lang.Throwable cause)
      Creates a new exception with the given exception cause.
    • Method Summary

      • Methods inherited from class com.lexmark.saperion.exceptions.EcmException

        createError, getDescriptionParameters, getErrorCode, getErrorDetails
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SecurityException

        public SecurityException()
        Default constuctor.
      • SecurityException

        public SecurityException​(com.lexmark.saperion.exceptions.ErrorType fault,
                                 java.lang.Throwable cause)
        Exception factory constructor. Constructs a security exception from a server fault.
        Parameters:
        fault - the server fault.
        cause - the exception cause
      • SecurityException

        public SecurityException​(com.lexmark.saperion.exceptions.system.SystemException.SystemError errorCode)
        Creates a new exception with the given error code.
        Parameters:
        errorCode - the error code
      • SecurityException

        public SecurityException​(com.lexmark.saperion.exceptions.system.SystemException.SystemError errorCode,
                                 java.lang.String message)
        Creates a new exception with the given error code and exception message.
        Parameters:
        errorCode - the error code
        message - the exception message
      • SecurityException

        public SecurityException​(java.lang.String message)
        Creates a new exception with the given exception message.
        Parameters:
        message - the exception message
      • SecurityException

        public SecurityException​(java.lang.String message,
                                 java.lang.Throwable cause,
                                 com.lexmark.saperion.exceptions.ErrorDetailsType errorDetails)
        Creates a new exception with the given error details, exception cause and exception message.
        Parameters:
        errorDetails - the error details
        message - the exception message
        cause - the exception cause
      • SecurityException

        public SecurityException​(java.lang.Throwable cause)
        Creates a new exception with the given exception cause.
        Parameters:
        cause - the exception cause
      • SecurityException

        protected SecurityException​(SecurityException.SecurityError errorCode)
        Creates a new exception with the given error code.
        Parameters:
        errorCode - the error code
      • SecurityException

        protected SecurityException​(SecurityException.SecurityError errorCode,
                                    com.lexmark.saperion.exceptions.ErrorDetailsType errorDetails,
                                    java.util.Map<java.lang.String,​java.lang.String> parameters,
                                    java.lang.String message,
                                    java.lang.Throwable cause)
        Creates a new exception with the given error code, error details, error parameters, exception cause and exception message.
        Parameters:
        errorCode - the error code
        errorDetails - the error details
        parameters - the error parameters
        message - the exception message
        cause - the exception cause
      • SecurityException

        protected SecurityException​(SecurityException.SecurityError errorCode,
                                    com.lexmark.saperion.exceptions.ErrorDetailsType errorDetails,
                                    java.lang.String message,
                                    java.lang.Throwable cause)
        Creates a new exception with the given error code, error details, exception cause and exception message.
        Parameters:
        errorCode - the error code
        errorDetails - the error details
        message - the exception message
        cause - the exception cause
      • SecurityException

        protected SecurityException​(SecurityException.SecurityError errorCode,
                                    java.lang.String message)
        Creates a new exception with the given error code and exception message.
        Parameters:
        errorCode - the error code
        message - the exception message
      • SecurityException

        protected SecurityException​(SecurityException.SecurityError errorCode,
                                    java.lang.Throwable cause)
        Creates a new exception with the given error code and exception cause.
        Parameters:
        errorCode - the error code
        cause - the exception cause