public class OAuth2ErrorResponse extends java.lang.Object implements RESTResponse
| Constructor and Description | 
|---|
OAuth2ErrorResponse()
This is the constructor that is used by Jackson deserializer 
 | 
OAuth2ErrorResponse(java.lang.String type,
                   java.lang.String message)
Creates a new OAuth2ErrorResponse. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
validate()
Validates the OAuth2ErrorResponse. 
 | 
public OAuth2ErrorResponse(java.lang.String type,
                           java.lang.String message)
type - The type of the error.message - The message of the error.public OAuth2ErrorResponse()
public void validate()
              throws java.lang.IllegalArgumentException
validate in interface RESTMessagejava.lang.IllegalArgumentException - if the OAuth2ErrorResponse is invalid.