Package dev.voidframework.web.exception
Class HttpException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.voidframework.web.exception.HttpException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
HttpException.BadRequest,HttpException.InternalServerError,HttpException.NotFound
All exceptions related to http possible errors are subclasses of
HttpException.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classException indicates that provided request is invalid.static classException indicates that a server-side error occur.static classException indicates that a resource was not found. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpException(String message) Build a new instance.protectedHttpException(String message, Throwable cause) Build a new instance. -
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
Build a new instance.- Parameters:
message- The detail messagecause- The root cause
-
HttpException
Build a new instance.- Parameters:
message- The detail message
-