Class DigifiedError

java.lang.Object
io.digified.digified_library.errors.DigifiedError

public class DigifiedError extends Object
  • Constructor Details

    • DigifiedError

      public DigifiedError(String errorCode, boolean shouldTerminate)
      Constructor for Digified Error
      Parameters:
      errorCode - error code from ErrorConstants
      shouldTerminate - whether you should terminate the session or not, if session is terminated BiometricDigified.getNextAction() will be reset to DigifiedConstants.Action.INITIALIZE
    • DigifiedError

      public DigifiedError(String errorCode)
      Constructor for Digified Error, in this implementation of the constructor, the error is not a termination error shouldTerminate = false
      Parameters:
      errorCode - error code from ErrorConstants
  • Method Details

    • getErrorCode

      public String getErrorCode()
      Getter method for errorCode
      Returns:
      the error code of this DigifiedError
    • isTerminationError

      public boolean isTerminationError()
      Getter method for shouldTerminate if session is terminated BiometricDigified.getNextAction() will be reset to DigifiedConstants.Action.INITIALIZE
      Returns:
      whether or not should we terminate the session