Class HttpException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.hawaiiframework.exception.HawaiiException
org.hawaiiframework.web.exception.HttpException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BadRequestException
,InternalServerErrorException
,ResourceNotFoundException
,UnauthorizedRequestException
An HTTP exception.
- Since:
- 2.0.0
- See Also:
-
Constructor Summary
ConstructorDescriptionHttpException
(String message, Throwable cause, org.springframework.http.HttpStatus httpStatus) HttpException
(String message, org.springframework.http.HttpStatus httpStatus) Constructs a newHttpException
with the supplied message andHttpStatus
.HttpException
(Throwable cause, org.springframework.http.HttpStatus httpStatus) HttpException
(org.springframework.http.HttpStatus httpStatus) Constructs a newHttpException
with the suppliedHttpStatus
. -
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(org.springframework.http.HttpStatus httpStatus) Constructs a newHttpException
with the suppliedHttpStatus
. -
HttpException
Constructs a newHttpException
with the supplied message andHttpStatus
. -
HttpException
-
HttpException
-
-
Method Details
-
getHttpStatus
public org.springframework.http.HttpStatus getHttpStatus()
-