Class HttpErrorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
net.thauvin.erik.frankfurter.exceptions.HttpErrorException
- All Implemented Interfaces:
Serializable
Exception representing HTTP errors with status codes.
- Since:
- 0.9.0
- Author:
- Erik C. Thauvin
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHttpErrorException(int statusCode, String message, URI uri) Creates an HttpErrorException with status code and message.HttpErrorException(int statusCode, String message, URI uri, Throwable cause) Creates an HttpErrorException with status code, 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
-
HttpErrorException
Creates an HttpErrorException with status code, message, and cause.- Parameters:
statusCode- the HTTP status codemessage- the error messagecause- the underlying cause of the exception
-
HttpErrorException
Creates an HttpErrorException with status code and message.- Parameters:
statusCode- the HTTP status codemessage- the error messageuri- the URI
-
-
Method Details
-
getStatusCode
public int getStatusCode()Gets the HTTP status code.- Returns:
- the status code
-
getUri
Gets the URI.- Returns:
- the URI
-