Class PowerAuthRecoveryException

java.lang.Object
java.lang.Throwable
java.lang.Exception
io.getlime.security.powerauth.rest.api.base.exception.PowerAuthRecoveryException
All Implemented Interfaces:
java.io.Serializable

public class PowerAuthRecoveryException
extends java.lang.Exception
Exception related to processes during a new activation process.
Author:
Roman Strobl, roman.strobl@wultra.com
See Also:
Serialized Form
  • Constructor Summary

    Constructors
    Constructor Description
    PowerAuthRecoveryException()
    Default constructor.
    PowerAuthRecoveryException​(java.lang.String message)
    Constructor with a custom error message.
    PowerAuthRecoveryException​(java.lang.String message, java.lang.String errorCode)
    Constructor with a custom error message and error code.
    PowerAuthRecoveryException​(java.lang.String message, java.lang.String errorCode, java.lang.Integer currentRecoveryPukIndex)
    Constructor with a custom error message, error code and current recovery PUK index.
  • Method Summary

    Modifier and Type Method Description
    java.lang.Integer getCurrentRecoveryPukIndex()
    Get current recovery PUK index.
    java.lang.String getErrorCode()
    Get error code.
    void setCurrentRecoveryPukIndex​(java.lang.Integer currentRecoveryPukIndex)
    Set current recovery PUK index.
    void setErrorCode​(java.lang.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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • PowerAuthRecoveryException

      public PowerAuthRecoveryException()
      Default constructor.
    • PowerAuthRecoveryException

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

      public PowerAuthRecoveryException​(java.lang.String message, java.lang.String errorCode)
      Constructor with a custom error message and error code.
      Parameters:
      message - Error message.
      errorCode - Error code.
    • PowerAuthRecoveryException

      public PowerAuthRecoveryException​(java.lang.String message, java.lang.String errorCode, java.lang.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 java.lang.String getErrorCode()
      Get error code.
      Returns:
      Error code.
    • setErrorCode

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

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

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