Class IdAuthenticationBusinessException

java.lang.Object
java.lang.Throwable
java.lang.Exception
io.mosip.kernel.core.exception.BaseCheckedException
io.mosip.authentication.core.exception.IdAuthenticationBaseException
io.mosip.authentication.core.exception.IdAuthenticationBusinessException
All Implemented Interfaces:
ObjectWithMetadata, Serializable
Direct Known Subclasses:
AuthenticationFailedException, IDAuthenticationUnknownException, IDDataValidationException, IdValidationFailedException, SecurityFailedException, ServiceTimeoutException

public class IdAuthenticationBusinessException extends IdAuthenticationBaseException
The parent exception for ID Authentication which is always associated with an error code. This exception is thrown at Service level, usually wrapped with root cause.
Author:
Manoj SP
See Also:
  • Constructor Details

    • IdAuthenticationBusinessException

      public IdAuthenticationBusinessException()
      Instantiates a new id authentication business exception.
    • IdAuthenticationBusinessException

      public IdAuthenticationBusinessException(String errorCode, String errorMessage)
      Constructs exception for the given error code and error message.
      Parameters:
      errorCode - the error code
      errorMessage - the error message
      See Also:
      • BaseUncheckedException(String, String)
    • IdAuthenticationBusinessException

      public IdAuthenticationBusinessException(String errorCode, String errorMessage, Throwable cause)
      Constructs exception for the given error code, error message and Throwable.
      Parameters:
      errorCode - the error code
      errorMessage - the error message
      cause - the cause
      See Also:
      • BaseUncheckedException(String, String, Throwable)
    • IdAuthenticationBusinessException

      public IdAuthenticationBusinessException(IdAuthenticationErrorConstants exceptionConstant)
      Constructs exception for the given IdAuthenticationErrorConstants.
      Parameters:
      exceptionConstant - the exception constant
      See Also:
      • BaseUncheckedException(String, String)
    • IdAuthenticationBusinessException

      public IdAuthenticationBusinessException(IdAuthenticationErrorConstants exceptionConstant, Throwable rootCause)
      Constructs exception for the given IdAuthenticationErrorConstants and Throwable.
      Parameters:
      exceptionConstant - the exception constant
      rootCause - the root cause
      See Also:
      • BaseUncheckedException(String, String, Throwable)