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
Describes an OAuth-related problem, 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 StringOAUTH_PROBLEM
-
Constructor Summary
Constructors Constructor Description OAuthProblemException()OAuthProblemException(String problem)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetHttpStatusCode()StringgetMessage()Map<String,Object>getParameters()StringgetProblem()voidsetParameter(String name, Object value)-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
OAUTH_PROBLEM
public static final String OAUTH_PROBLEM
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OAuthProblemException
public OAuthProblemException()
-
OAuthProblemException
public OAuthProblemException(String problem)
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessagein classThrowable
-
getProblem
public String getProblem()
-
getHttpStatusCode
public int getHttpStatusCode()
-
-