org.jboss.resteasy.auth.oauth
Class OAuthException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.jboss.resteasy.auth.oauth.OAuthException
- All Implemented Interfaces:
- Serializable
public class OAuthException
- extends Exception
Use this exception to throw exceptions from your OAuthProvider to specify the HTTP status code
- Author:
- Stéphane Épardaud
- See Also:
- Serialized Form
Constructor Summary |
OAuthException(int httpCode,
String message)
Builds a new OAuth exception which will result in sending the specified HTTP status code
to the Client. |
Method Summary |
int |
getHttpCode()
Returns the HTTP status code to return to the OAuth Client |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
OAuthException
public OAuthException(int httpCode,
String message)
- Builds a new OAuth exception which will result in sending the specified HTTP status code
to the Client.
- Parameters:
httpCode
- the HTTP status code to return to the OAuth Clientmessage
- the message describing the problem, also returned to the OAuth Client
getHttpCode
public int getHttpCode()
- Returns the HTTP status code to return to the OAuth Client
Copyright © 2013. All Rights Reserved.