Package org.jose4j.jwt.consumer
Class ErrorCodeValidator.Error
java.lang.Object
org.jose4j.jwt.consumer.ErrorCodeValidator.Error
- Enclosing interface:
- ErrorCodeValidator
JWT validation error with stable error code and friendly error message
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Error
Creates a new JWT validation error with the given code and message.ErrorCodeshas the codes defined in this library. User defined error codes should use negative values so as to avoid potential collisions with error code values used by this library.- Parameters:
errorCode- the error codeerrorMessage- the error message
-
-
Method Details
-
getErrorCode
public int getErrorCode()The error code.ErrorCodeshas the codes defined in this library.- Returns:
- the error code
-
getErrorMessage
The error message- Returns:
- the error message
-
toString
-