Package dev.daymor.sakuraboot.exceptions
Class BadRequestException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.daymor.sakuraboot.exceptions.SuperException
dev.daymor.sakuraboot.exceptions.BadRequestException
- All Implemented Interfaces:
Serializable
Represents an exception indicating a bad request from the client. Extends the
SuperException
class and sets the HTTP status to 400 Bad Request.- Since:
- 0.1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBadRequestException
(String message) Constructs a new BadRequestException with the given message.BadRequestException
(String message, Throwable cause) Constructs a new BadRequestException with the given message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BadRequestException
Constructs a new BadRequestException with the given message.- Parameters:
message
- The error message.
-
BadRequestException
Constructs a new BadRequestException with the given message.- Parameters:
message
- The error message.cause
- The cause of the exception as a Throwable.
-