org.jboss.resteasy.auth.oauth
Class OAuthException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.jboss.resteasy.auth.oauth.OAuthException
All Implemented Interfaces:
java.io.Serializable

public class OAuthException
extends java.lang.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, java.lang.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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OAuthException

public OAuthException(int httpCode,
                      java.lang.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 Client
message - the message describing the problem, also returned to the OAuth Client
Method Detail

getHttpCode

public int getHttpCode()
Returns the HTTP status code to return to the OAuth Client



Copyright © 2010. All Rights Reserved.