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 Details

    • PowerAuthRecoveryException

      public PowerAuthRecoveryException()
      Default constructor.
    • PowerAuthRecoveryException

      public PowerAuthRecoveryException​(String message)
      Constructor with a custom error message.
      Parameters:
      message - Error message.
    • PowerAuthRecoveryException

      public PowerAuthRecoveryException​(String message, String errorCode)
      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

      public String getErrorCode()
      Get error code.
      Returns:
      Error code.
    • getDefaultError

      public String getDefaultError()
      Get default error message, used for example in the REST response.
      Returns:
      Default error message.
    • setErrorCode

      public void setErrorCode​(String errorCode)
      Set error code.
      Parameters:
      errorCode - Error code.
    • getCurrentRecoveryPukIndex

      public Integer getCurrentRecoveryPukIndex()
      Get current recovery PUK index.
      Returns:
      Current recovery PUK index.
    • setCurrentRecoveryPukIndex

      public void setCurrentRecoveryPukIndex​(Integer currentRecoveryPukIndex)
      Set current recovery PUK index.
      Parameters:
      currentRecoveryPukIndex - Current recovery PUK index.