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
public class HttpCommunicationException extends CommunicationException
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HttpCommunicationException(int code, String body)
HttpCommunicationException(String message)
HttpCommunicationException(Throwable t)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBody()
int
getCode()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getCode
public int getCode()
-
getBody
public String getBody()
-
-