Class BadRequestException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.forgerock.oauth2.core.exceptions.OAuth2Exception
-
- org.forgerock.oauth2.core.exceptions.BadRequestException
-
- All Implemented Interfaces:
Serializable
public class BadRequestException extends OAuth2Exception
Thrown when the request is malformed.- Since:
- 12.0.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BadRequestException(String message)Constructs a new BadRequestException with the specified message.BadRequestException(String error, String message)Constructs a new BadRequestException with the specified message and code.
-
Method Summary
-
Methods inherited from class org.forgerock.oauth2.core.exceptions.OAuth2Exception
getError, getParameterLocation, getStatusCode
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
BadRequestException
public BadRequestException(String message)
Constructs a new BadRequestException with the specified message.- Parameters:
message- The reason for the exception.
-
-