Package com.inrupt.client.openid
Class OpenIdException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.inrupt.client.openid.OpenIdException
-
- All Implemented Interfaces:
Serializable
public class OpenIdException extends RuntimeException
A runtime exception for use with OpenID-related errors.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OpenIdException(String message)
Create an OpenID exception.OpenIdException(String message, int statusCode)
Create a OpenID exception.OpenIdException(String message, Throwable cause)
Create an OpenID exception.OpenIdException(String message, Throwable cause, int statusCode)
Create an OpenID exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OptionalInt
getStatus()
Get the HTTP status code of the response if there is one.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
OpenIdException
public OpenIdException(String message)
Create an OpenID exception.- Parameters:
message
- the message
-
OpenIdException
public OpenIdException(String message, Throwable cause)
Create an OpenID exception.- Parameters:
message
- the messagecause
- the cause
-
OpenIdException
public OpenIdException(String message, Throwable cause, int statusCode)
Create an OpenID exception.- Parameters:
message
- the messagecause
- the causestatusCode
- the HTTP status code
-
OpenIdException
public OpenIdException(String message, int statusCode)
Create a OpenID exception.- Parameters:
message
- the messagestatusCode
- the HTTP status code
-
-
Method Detail
-
getStatus
public OptionalInt getStatus()
Get the HTTP status code of the response if there is one.- Returns:
- the HTTP status code
-
-