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
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 Summary
ConstructorsConstructorDescriptionInstantiates a new id authentication business exception.IdAuthenticationBusinessException(IdAuthenticationErrorConstants exceptionConstant) Constructs exception for the givenIdAuthenticationErrorConstants.IdAuthenticationBusinessException(IdAuthenticationErrorConstants exceptionConstant, Throwable rootCause) Constructs exception for the givenIdAuthenticationErrorConstantsandThrowable.IdAuthenticationBusinessException(String errorCode, String errorMessage) Constructs exception for the given error code and error message.IdAuthenticationBusinessException(String errorCode, String errorMessage, Throwable cause) Constructs exception for the given error code, error message andThrowable. -
Method Summary
Methods inherited from class io.mosip.authentication.core.exception.IdAuthenticationBaseException
getActionMessage, getMetadata, setMetadataMethods inherited from class io.mosip.kernel.core.exception.BaseCheckedException
addInfo, getCodes, getErrorCode, getErrorText, getErrorTexts, getMessageMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.mosip.authentication.core.dto.ObjectWithMetadata
copyAllMetadaTo, copyMetadataTo, getMetadata, getMetadata, putAllMetadata, putMetadata
-
Constructor Details
-
IdAuthenticationBusinessException
public IdAuthenticationBusinessException()Instantiates a new id authentication business exception. -
IdAuthenticationBusinessException
Constructs exception for the given error code and error message.- Parameters:
errorCode- the error codeerrorMessage- the error message- See Also:
-
IdAuthenticationBusinessException
Constructs exception for the given error code, error message andThrowable.- Parameters:
errorCode- the error codeerrorMessage- the error messagecause- the cause- See Also:
-
IdAuthenticationBusinessException
Constructs exception for the givenIdAuthenticationErrorConstants.- Parameters:
exceptionConstant- the exception constant- See Also:
-
IdAuthenticationBusinessException
public IdAuthenticationBusinessException(IdAuthenticationErrorConstants exceptionConstant, Throwable rootCause) Constructs exception for the givenIdAuthenticationErrorConstantsandThrowable.- Parameters:
exceptionConstant- the exception constantrootCause- the root cause- See Also:
-