Class PowerAuthRecoveryException
java.lang.Object
java.lang.Throwable
java.lang.Exception
io.getlime.security.powerauth.rest.api.spring.exception.PowerAuthRecoveryException
- All Implemented Interfaces:
Serializable
public class PowerAuthRecoveryException extends Exception
Exception thrown in case PowerAuth recovery fails, with optional current PUK index.
- Author:
- Roman Strobl, roman.strobl@wultra.com
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description PowerAuthRecoveryException()Default constructor.PowerAuthRecoveryException(String message)Constructor with a custom error message.PowerAuthRecoveryException(String message, String errorCode)Constructor with a custom error message and error code.PowerAuthRecoveryException(String message, String errorCode, Integer currentRecoveryPukIndex)Constructor with a custom error message, error code and current recovery PUK index. -
Method Summary
Modifier and Type Method Description IntegergetCurrentRecoveryPukIndex()Get current recovery PUK index.StringgetDefaultError()Get default error message, used for example in the REST response.StringgetErrorCode()Get error code.voidsetCurrentRecoveryPukIndex(Integer currentRecoveryPukIndex)Set current recovery PUK index.voidsetErrorCode(String errorCode)Set error code.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PowerAuthRecoveryException
public PowerAuthRecoveryException()Default constructor. -
PowerAuthRecoveryException
Constructor with a custom error message.- Parameters:
message- Error message.
-
PowerAuthRecoveryException
Constructor with a custom error message and error code.- Parameters:
message- Error message.errorCode- Error code.
-
PowerAuthRecoveryException
public PowerAuthRecoveryException(String message, String errorCode, Integer currentRecoveryPukIndex)Constructor with a custom error message, error code and current recovery PUK index.- Parameters:
message- Error message.errorCode- Error code.currentRecoveryPukIndex- Current recovery PUK index.
-
-
Method Details
-
getErrorCode
Get error code.- Returns:
- Error code.
-
getDefaultError
Get default error message, used for example in the REST response.- Returns:
- Default error message.
-
setErrorCode
Set error code.- Parameters:
errorCode- Error code.
-
getCurrentRecoveryPukIndex
Get current recovery PUK index.- Returns:
- Current recovery PUK index.
-
setCurrentRecoveryPukIndex
Set current recovery PUK index.- Parameters:
currentRecoveryPukIndex- Current recovery PUK index.
-