com.sun.jersey.oauth.server
Class OAuthException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.sun.jersey.oauth.server.OAuthException
All Implemented Interfaces:
Serializable

public class OAuthException
extends RuntimeException

Exception that is mapped either to Response.Status#BAD_REQUEST or Response.Status#UNAUTHORIZED.

Author:
Martin Matula
See Also:
Serialized Form

Field Summary
 Response.Status status
           
 String wwwAuthHeader
           
 
Constructor Summary
OAuthException(Response.Status status, String wwwAuthHeader)
           
 
Method Summary
 Response toResponse()
          Maps this exception to a response object.
 
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
 

Field Detail

status

public final Response.Status status

wwwAuthHeader

public final String wwwAuthHeader
Constructor Detail

OAuthException

public OAuthException(Response.Status status,
                      String wwwAuthHeader)
Method Detail

toResponse

public Response toResponse()
Maps this exception to a response object.

Returns:
Response this exception maps to.


Copyright © 2013 Oracle Corporation. All Rights Reserved.