Class OAuth2ErrorResponse
java.lang.Object
org.apache.gravitino.dto.responses.OAuth2ErrorResponse
- All Implemented Interfaces:
RESTMessage
,RESTResponse
Represents the response of an OAuth2 error.
-
Constructor Summary
ConstructorsConstructorDescriptionThis is the constructor that is used by Jackson deserializerOAuth2ErrorResponse
(String type, String message) Creates a new OAuth2ErrorResponse. -
Method Summary
-
Constructor Details
-
OAuth2ErrorResponse
Creates a new OAuth2ErrorResponse.- Parameters:
type
- The type of the error.message
- The message of the error.
-
OAuth2ErrorResponse
public OAuth2ErrorResponse()This is the constructor that is used by Jackson deserializer
-
-
Method Details
-
validate
Validates the OAuth2ErrorResponse.- Specified by:
validate
in interfaceRESTMessage
- Throws:
IllegalArgumentException
- if the OAuth2ErrorResponse is invalid.
-