Package net.oauth
Class OAuthProblemException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- net.oauth.OAuthException
-
- net.oauth.OAuthProblemException
-
- All Implemented Interfaces:
Serializable
public class OAuthProblemException extends OAuthException
An OAuth-related problem, described using a set of named parameters. One parameter identifies the basic problem, and the others provide supplementary diagnostic information. This can be used to capture information from a response that conforms to the OAuth Problem Reporting extension.- Author:
- John Kristian
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
HTTP_LOCATION
The name of a parameter whose value is the response Location header.static String
HTTP_REQUEST
The name of a parameter whose value is the HTTP request.static String
HTTP_RESPONSE
The name of a parameter whose value is the HTTP response.static String
HTTP_STATUS_CODE
The name of a parameter whose value is the HTTP resopnse status code.static String
OAUTH_PROBLEM
static String
SIGNATURE_BASE_STRING
The name of a parameter whose value is the OAuth signature base string.static String
URL
The name of a parameter whose value is the request URL.
-
Constructor Summary
Constructors Constructor Description OAuthProblemException()
OAuthProblemException(String problem)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getHttpStatusCode()
String
getMessage()
Map<String,Object>
getParameters()
String
getProblem()
void
setParameter(String name, Object value)
String
toString()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Field Detail
-
HTTP_LOCATION
public static final String HTTP_LOCATION
The name of a parameter whose value is the response Location header.- See Also:
- Constant Field Values
-
HTTP_REQUEST
public static final String HTTP_REQUEST
The name of a parameter whose value is the HTTP request.- See Also:
- Constant Field Values
-
HTTP_RESPONSE
public static final String HTTP_RESPONSE
The name of a parameter whose value is the HTTP response.- See Also:
- Constant Field Values
-
HTTP_STATUS_CODE
public static final String HTTP_STATUS_CODE
The name of a parameter whose value is the HTTP resopnse status code.- See Also:
- Constant Field Values
-
OAUTH_PROBLEM
public static final String OAUTH_PROBLEM
- See Also:
- Constant Field Values
-
SIGNATURE_BASE_STRING
public static final String SIGNATURE_BASE_STRING
The name of a parameter whose value is the OAuth signature base string.- See Also:
- Constant Field Values
-
URL
public static final String URL
The name of a parameter whose value is the request URL.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OAuthProblemException
public OAuthProblemException()
-
OAuthProblemException
public OAuthProblemException(String problem)
-
-
Method Detail
-
getHttpStatusCode
public int getHttpStatusCode()
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
getProblem
public String getProblem()
-
-