java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.inverno.mod.http.base.HttpException
io.inverno.mod.http.base.BadRequestException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MissingRequiredParameterException
A HTTP exception that indicates a Bad Request (400)
.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates a bad request exception.BadRequestException
(String message) Creates a bad request exception with the specified message.BadRequestException
(String message, Throwable cause) Creates a bad request exception with the specified message and cause.BadRequestException
(Throwable cause) Creates a bad request exception with the specified cause. -
Method Summary
Methods inherited from class io.inverno.mod.http.base.HttpException
getStatus, getStatusCategory, getStatusCode, getStatusReasonPhrase, wrap
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BadRequestException
public BadRequestException()Creates a bad request exception.
-
BadRequestException
Creates a bad request exception with the specified message.
- Parameters:
message
- a message
-
BadRequestException
Creates a bad request exception with the specified cause.
- Parameters:
cause
- a cause
-
BadRequestException
Creates a bad request exception with the specified message and cause.
- Parameters:
message
- a messagecause
- a cause
-