org.apache.oltu.oauth2.common.exception
Class OAuthProblemException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.oltu.oauth2.common.exception.OAuthProblemException
All Implemented Interfaces:
Serializable

public class OAuthProblemException
extends Exception

See Also:
Serialized Form

Constructor Summary
protected OAuthProblemException(String error)
           
protected OAuthProblemException(String error, String description)
           
 
Method Summary
 OAuthProblemException description(String description)
           
static OAuthProblemException error(String error)
           
static OAuthProblemException error(String error, String description)
           
 String get(String name)
           
 String getDescription()
           
 String getError()
           
 String getMessage()
           
 Map<String,String> getParameters()
           
 String getRedirectUri()
           
 int getResponseStatus()
           
 String getScope()
           
 String getState()
           
 String getUri()
           
 OAuthProblemException responseStatus(int responseStatus)
           
 OAuthProblemException scope(String scope)
           
 OAuthProblemException setParameter(String name, String value)
           
 void setRedirectUri(String redirectUri)
           
 OAuthProblemException state(String state)
           
 String toString()
           
 OAuthProblemException uri(String uri)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OAuthProblemException

protected OAuthProblemException(String error)

OAuthProblemException

protected OAuthProblemException(String error,
                                String description)
Method Detail

error

public static OAuthProblemException error(String error)

error

public static OAuthProblemException error(String error,
                                          String description)

description

public OAuthProblemException description(String description)

uri

public OAuthProblemException uri(String uri)

state

public OAuthProblemException state(String state)

scope

public OAuthProblemException scope(String scope)

responseStatus

public OAuthProblemException responseStatus(int responseStatus)

setParameter

public OAuthProblemException setParameter(String name,
                                          String value)

getError

public String getError()

getDescription

public String getDescription()

getUri

public String getUri()

getState

public String getState()

getScope

public String getScope()

getResponseStatus

public int getResponseStatus()

get

public String get(String name)

getParameters

public Map<String,String> getParameters()

getRedirectUri

public String getRedirectUri()

setRedirectUri

public void setRedirectUri(String redirectUri)

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

toString

public String toString()
Overrides:
toString in class Throwable


Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.