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) HttpCommunicationException
(String message) -
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
-
HttpCommunicationException
-
HttpCommunicationException
-
-
Method Details
-
getCode
public int getCode() -
getBody
-