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
public class HttpException extends HawaiiException
- Since:
- 2.0.0
- Author:
- Ivan Melotte
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HttpException(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.HttpStatus
getHttpStatus()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
HttpException
public HttpException(org.springframework.http.HttpStatus httpStatus)
Constructs a newHttpException
with the suppliedHttpStatus
.
-
HttpException
public HttpException(String message, org.springframework.http.HttpStatus httpStatus)
Constructs a newHttpException
with the supplied message andHttpStatus
.
-
HttpException
public HttpException(String message, Throwable cause, org.springframework.http.HttpStatus httpStatus)
-
HttpException
public HttpException(Throwable cause, org.springframework.http.HttpStatus httpStatus)
-
-