Package org.omegazero.http.common
Class HTTPException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.omegazero.http.common.HTTPException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
HTTP2ConnectionError
,InvalidHTTPMessageException
,MessageStreamClosedException
An exception thrown when any kind of HTTP protocol error is encountered.
- Since:
- 1.4.1
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newHTTPException
with no detail message.HTTPException
(String msg) Creates a newHTTPException
with the given detail message.HTTPException
(String msg, Throwable cause) Creates a newHTTPException
with the given detail message and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HTTPException
public HTTPException()Creates a newHTTPException
with no detail message. -
HTTPException
Creates a newHTTPException
with the given detail message.- Parameters:
msg
- The detail message
-
HTTPException
Creates a newHTTPException
with the given detail message and cause.- Parameters:
msg
- The detail messagecause
- The cause
-