com.auth0.InvalidRequestException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mvc-auth-commons Show documentation
Show all versions of mvc-auth-commons Show documentation
Java library that simplifies the use of Auth0 for server-side MVC web apps
package com.auth0;
/**
* Represents an error occurred while executing a request against the Auth0 Authentication API
*/
@SuppressWarnings("WeakerAccess")
public class InvalidRequestException extends IdentityVerificationException {
static final String MISSING_AUTHORIZATION_CODE_ERROR = "a0.missing_authorization_code";
static final String INVALID_STATE_ERROR = "a0.invalid_state";
private final String code;
private final String description;
InvalidRequestException(String code, String description) {
super("The request contains an error: " + code);
this.code = code;
this.description = description;
}
/**
* Getter for the description of the error.
*
* @return the error description if available, null otherwise.
*/
public String getDescription() {
return description;
}
/**
* Getter for the code of the error.
*
* @return the error code.
*/
public String getCode() {
return code;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy