public class OAuth2ErrorResponse extends java.lang.Object implements RESTResponse
Constructor and Description |
---|
OAuth2ErrorResponse() |
OAuth2ErrorResponse(java.lang.String type,
java.lang.String message) |
Modifier and Type | Method and Description |
---|---|
void |
validate()
Ensures that a constructed instance of a REST message is valid according to the REST spec.
|
public OAuth2ErrorResponse(java.lang.String type, java.lang.String message)
public OAuth2ErrorResponse()
public void validate() throws java.lang.IllegalArgumentException
RESTMessage
This is needed when parsing data that comes from external sources and the object might have been constructed without all the required fields present.
validate
in interface RESTMessage
java.lang.IllegalArgumentException