Class AuthenticationException

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

    public class AuthenticationException
    extends java.lang.Exception
    Exception class for any exceptions or errors during processing within the Dermis.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      AuthenticationException()  
      AuthenticationException​(java.lang.String message)  
      AuthenticationException​(java.lang.String resourceID, int severity)
      A constructor that finds a string using resourceID and merges arguments and logs.
      AuthenticationException​(java.lang.String resourceID, int severity, java.lang.Throwable cause)
      A constructor that finds a string using resourceID and logs.
      AuthenticationException​(java.lang.String resourceID, java.lang.String[] args)
      A constructor that finds a string using resourceID and merges arguments and logs.
      AuthenticationException​(java.lang.String resourceID, java.lang.String[] args, int severity)
      A constructor that finds a string using resourceID and merges arguments and logs.
      AuthenticationException​(java.lang.String resourceID, java.lang.String[] args, int severity, java.lang.Throwable cause)
      A constructor that finds a string using resourceID and merges arguments and logs.
      AuthenticationException​(java.lang.String resourceID, java.lang.String[] args, java.lang.String originCode, java.lang.String originMessage)
      A constructor that finds a string using resourceID and merges arguments and logs.
      AuthenticationException​(java.lang.String resourceID, java.lang.String[] args, java.lang.String originCode, java.lang.String originMessage, java.lang.String originContentType)
      A constructor that finds a string using resourceID and merges arguments and logs.
      AuthenticationException​(java.lang.String message, java.lang.Throwable cause)  
      AuthenticationException​(java.lang.Throwable cause)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.sling.commons.json.JSONObject getJson()  
      java.lang.Object[] getMessageArgs()  
      java.lang.String getMessageCode()  
      java.lang.String getOriginCode()
      Returns error code provided by orginial data source
      java.lang.String getOriginContentType()
      Returns the content type of the originial data source
      java.lang.String getOriginMessage()
      Returns error details provided by originial data source
      java.lang.String getUnresolvedMessage()  
      void setMessageArgs​(java.lang.Object[] messageArgs)  
      void setMessageCode​(java.lang.String code)  
      void setUnresolvedMessage​(java.lang.String unresolvedMessage)  
      • 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

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

      • AuthenticationException

        public AuthenticationException()
      • AuthenticationException

        public AuthenticationException​(java.lang.String resourceID,
                                       java.lang.String[] args,
                                       int severity)
        A constructor that finds a string using resourceID and merges arguments and logs.
        Parameters:
        resourceID - key of message.
        args - array containing value of place holders.
        severity - severity of message.
      • AuthenticationException

        public AuthenticationException​(java.lang.String resourceID,
                                       java.lang.String[] args)
        A constructor that finds a string using resourceID and merges arguments and logs.
        Parameters:
        resourceID - key of message.
        args - array containing value of place holders.
      • AuthenticationException

        public AuthenticationException​(java.lang.String resourceID,
                                       java.lang.String[] args,
                                       java.lang.String originCode,
                                       java.lang.String originMessage)
        A constructor that finds a string using resourceID and merges arguments and logs. Additionally takes error code and corresponding to root cause
        Parameters:
        resourceID - key of message.
        args - array containing value of place holders.
        originCode -
        originMessage -
      • AuthenticationException

        public AuthenticationException​(java.lang.String resourceID,
                                       java.lang.String[] args,
                                       java.lang.String originCode,
                                       java.lang.String originMessage,
                                       java.lang.String originContentType)
        A constructor that finds a string using resourceID and merges arguments and logs. Additionally takes error code and corresponding to root cause
        Parameters:
        resourceID - key of message.
        args - array containing value of place holders.
        originCode - error code provided by orginial data source
        originMessage - error details provided by orginial data source
        originContentType - contentType provided by original data source
      • AuthenticationException

        public AuthenticationException​(java.lang.String resourceID,
                                       int severity,
                                       java.lang.Throwable cause)
        A constructor that finds a string using resourceID and logs.
        Parameters:
        resourceID - key of message.
        severity - severity of message.
        cause - cause of the exception.
      • AuthenticationException

        public AuthenticationException​(java.lang.String resourceID,
                                       java.lang.String[] args,
                                       int severity,
                                       java.lang.Throwable cause)
        A constructor that finds a string using resourceID and merges arguments and logs.
        Parameters:
        resourceID - key of message.
        args - array containing value of place holders.
        severity - severity of message.
        cause - cause of the exception.
      • AuthenticationException

        public AuthenticationException​(java.lang.String resourceID,
                                       int severity)
        A constructor that finds a string using resourceID and merges arguments and logs.
        Parameters:
        resourceID - key of message.
        severity - severity of message.
      • AuthenticationException

        public AuthenticationException​(java.lang.String message)
      • AuthenticationException

        public AuthenticationException​(java.lang.Throwable cause)
      • AuthenticationException

        public AuthenticationException​(java.lang.String message,
                                       java.lang.Throwable cause)
    • Method Detail

      • getMessageArgs

        public java.lang.Object[] getMessageArgs()
      • setMessageArgs

        public void setMessageArgs​(java.lang.Object[] messageArgs)
      • getMessageCode

        public java.lang.String getMessageCode()
      • setMessageCode

        public void setMessageCode​(java.lang.String code)
      • getUnresolvedMessage

        public java.lang.String getUnresolvedMessage()
      • setUnresolvedMessage

        public void setUnresolvedMessage​(java.lang.String unresolvedMessage)
      • getOriginCode

        public java.lang.String getOriginCode()
        Returns error code provided by orginial data source
        Returns:
      • getOriginMessage

        public java.lang.String getOriginMessage()
        Returns error details provided by originial data source
        Returns:
      • getOriginContentType

        public java.lang.String getOriginContentType()
        Returns the content type of the originial data source
        Returns:
      • getJson

        public org.apache.sling.commons.json.JSONObject getJson()