10Duke Java Core
|
Base class for providing an easy to read and handle exception creation.
Utilizes the following exceptions with the correct error codes during creation.
Static Public Member Functions | |
static SdkException | internalError (final String message) |
Creates an exception representing an internal error and passes the given message to it. | |
static SdkException | internalError (final String message, final Throwable cause) |
Creates an exception representing an internal error and passes the given message and cause to it. | |
static SdkException | badArguments (final String message, final Throwable cause) |
Creates an exception representing a bad arguments error and passes the given message and cause to it. | |
static SdkException | internalTimeoutError (final String message) |
Creates an exception representing a timeout error and passes the given message to it. | |
static SdkException | internalTimeoutError (final String message, final Throwable cause) |
Creates an exception representing a timeout error and passes the given message and cause to it. | |
static TokenException | invalidJwtToken () |
Builds an exception to indicate that the JWT is invalid. | |
static TokenException | invalidJwtToken (final String message, final Throwable cause) |
Builds an exception to indicate that the JWT is invalid and passes the given message and cause to it. | |
static TokenException | invalidJwtHeader () |
Builds an exception to indicate that the header of the JWT is invalid. | |
static TokenException | invalidJwtHeader (final String message, final Throwable cause) |
Builds an exception to indicate that the header of the JWT is invalid and passes the given message and cause to it. | |
static TokenException | invalidJwtPayload () |
Builds an exception to indicate that the payload of the JWT is invalid. | |
static TokenException | invalidJwtSignature () |
Builds an exception to indicate that the signature of the JWT is invalid. | |
static TokenException | notActiveJwtToken () |
Builds an exception to indicate that the JWT is not active. | |
static TokenException | invalidJwtAlgorithm () |
Builds an exception to indicate that the algorithm of the JWT is invalid. | |
static TokenException | invalidJwtAudience () |
Builds an exception to indicate that the audience of the JWT is invalid. | |
static TokenException | invalidJwtIssuer () |
Builds an exception to indicate that the issuer of the JWT is invalid. | |
static TokenException | invalidJwtIssuedAt () |
Builds an exception to indicate that the issued at claim of the JWT is invalid. | |
static TokenException | invalidJwtId () |
Builds an exception to indicate that the id of the JWT is invalid. | |
static TokenException | missingRequiredJwtClaim () |
Builds an exception to indicate that the JWT is missing a required claim. | |
static TokenException | missingRequiredJwtClaim (final String message, final Throwable cause) |
Builds an exception to indicate that the JWT is missing a required claim. | |
static TokenException | missingJwtSigningKey () |
Builds an exception to indicate that the signing key of the JWT is missing. | |
static TokenException | missingJwtSigningKey (final String message, final Throwable cause) |
Builds an exception to indicate that the signing key of the JWT is missing. | |
static TokenException | missingJwtVerificationKey () |
Builds an exception to indicate that the verification key of the JWT is missing. | |
static TokenException | missingJwtVerificationKey (final String message, final Throwable cause) |
Builds an exception to indicate that the verification key of the JWT is missing. | |
static ConfigException | missingConfig (final String message) |
Builds an exception to indicate that the configuration is missing. | |
static ConfigException | invalidConfig (final String message) |
Builds an exception to indicate that the configuration is invalid. | |
static UserAuthRequiredException | userAuthenticationRequired (final String message) |
Builds an exception to indicate that user authentication is required before retrying the same action that caused the exception. | |
static UserAuthRequiredException | userAuthenticationRequired (final String message, final Throwable cause) |
Builds an exception that indicates user authentication is required to perform an action. | |
|
static |
Creates an exception representing a bad arguments error and passes the given message and cause to it.
message | detailed message of the error. |
cause | nested cause. |
|
static |
Creates an exception representing an internal error and passes the given message to it.
message | detailed message of the error. |
|
static |
Creates an exception representing an internal error and passes the given message and cause to it.
message | detailed message of the error. |
cause | nested cause. |
|
static |
Creates an exception representing a timeout error and passes the given message to it.
message | detailed message of the error. |
|
static |
Creates an exception representing a timeout error and passes the given message and cause to it.
message | detailed message of the error. |
cause | nested cause. |
|
static |
Builds an exception to indicate that the configuration is invalid.
message | detailed message of the error. |
|
static |
Builds an exception to indicate that the algorithm of the JWT is invalid.
|
static |
Builds an exception to indicate that the audience of the JWT is invalid.
|
static |
Builds an exception to indicate that the header of the JWT is invalid.
|
static |
Builds an exception to indicate that the header of the JWT is invalid and passes the given message and cause to it.
message | detailed message of the error. |
cause | nested cause. |
|
static |
Builds an exception to indicate that the id of the JWT is invalid.
|
static |
Builds an exception to indicate that the issued at claim of the JWT is invalid.
|
static |
Builds an exception to indicate that the issuer of the JWT is invalid.
|
static |
Builds an exception to indicate that the payload of the JWT is invalid.
|
static |
Builds an exception to indicate that the signature of the JWT is invalid.
|
static |
Builds an exception to indicate that the JWT is invalid.
|
static |
Builds an exception to indicate that the JWT is invalid and passes the given message and cause to it.
message | detailed message of the error. |
cause | nested cause. |
|
static |
Builds an exception to indicate that the configuration is missing.
message | detailed message of the error. |
|
static |
Builds an exception to indicate that the signing key of the JWT is missing.
|
static |
Builds an exception to indicate that the signing key of the JWT is missing.
message | detailed message of the error. |
cause | nested cause. |
|
static |
Builds an exception to indicate that the verification key of the JWT is missing.
|
static |
Builds an exception to indicate that the verification key of the JWT is missing.
message | detailed message of the error. |
cause | nested cause. |
|
static |
Builds an exception to indicate that the JWT is missing a required claim.
|
static |
Builds an exception to indicate that the JWT is missing a required claim.
message | detailed message of the error. |
cause | nested cause. |
|
static |
Builds an exception to indicate that the JWT is not active.
|
static |
Builds an exception to indicate that user authentication is required before retrying the same action that caused the exception.
message | detailed message of the error. |
|
static |
Builds an exception that indicates user authentication is required to perform an action.
message | detailed message of the error. |
cause | An underlying cause that triggers need for re-authenticating the user. |