Package org.pac4j.core.exception
Class HttpCommunicationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.pac4j.core.exception.TechnicalException
org.pac4j.core.exception.CommunicationException
org.pac4j.core.exception.HttpCommunicationException
- All Implemented Interfaces:
Serializable
This class represents an exception which can happen during HTTP communication (with status code and message body).
- Since:
- 1.3.0
- Author:
- Jerome Leleu
- See Also:
-
Constructor Summary
ConstructorDescriptionHttpCommunicationException
(int code, String body) Constructor for HttpCommunicationException.HttpCommunicationException
(String message) Constructor for HttpCommunicationException.Constructor for HttpCommunicationException. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HttpCommunicationException
Constructor for HttpCommunicationException.
- Parameters:
code
- a intbody
- aString
object
-
HttpCommunicationException
Constructor for HttpCommunicationException.
- Parameters:
t
- aThrowable
object
-
HttpCommunicationException
Constructor for HttpCommunicationException.
- Parameters:
message
- aString
object
-
-
Method Details
-
getCode
public int getCode()Getter for the field
code
.- Returns:
- a int
-
getBody
Getter for the field
body
.- Returns:
- a
String
object
-