Package io.helidon.webserver
Class HttpException
- java.lang.Object
- 
- java.lang.Throwable
- 
- java.lang.Exception
- 
- java.lang.RuntimeException
- 
- io.helidon.webserver.HttpException
 
 
 
 
- 
- All Implemented Interfaces:
- Serializable
 - Direct Known Subclasses:
- BadRequestException,- NotFoundException
 
 public class HttpException extends RuntimeException Runtime exception for applications.This exception may be thrown during request processing if a specific HTTP error response needs to be produced. Only effective if thrown before the status code is sent. - See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description HttpException(String message)CreatesHttpExceptionassociated withHttp.Status.INTERNAL_SERVER_ERROR_500.HttpException(String message, Http.ResponseStatus status)CreatesHttpException.HttpException(String message, Http.ResponseStatus status, Throwable cause)CreatesHttpException.HttpException(String message, Throwable cause)CreatesHttpExceptionassociated withHttp.Status.INTERNAL_SERVER_ERROR_500.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Http.ResponseStatusstatus()Obtain the associated http status.- 
Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
- 
 
- 
- 
- 
Constructor Detail- 
HttpExceptionpublic HttpException(String message) CreatesHttpExceptionassociated withHttp.Status.INTERNAL_SERVER_ERROR_500.- Parameters:
- message- the message
 
 - 
HttpExceptionpublic HttpException(String message, Throwable cause) CreatesHttpExceptionassociated withHttp.Status.INTERNAL_SERVER_ERROR_500.- Parameters:
- message- the message
- cause- the cause of this exception
 
 - 
HttpExceptionpublic HttpException(String message, Http.ResponseStatus status) CreatesHttpException.- Parameters:
- message- the message
- status- the http status
 
 - 
HttpExceptionpublic HttpException(String message, Http.ResponseStatus status, Throwable cause) CreatesHttpException.- Parameters:
- message- the message
- status- the http status
- cause- the cause of this exception
 
 
- 
 - 
Method Detail- 
statuspublic final Http.ResponseStatus status() Obtain the associated http status.- Returns:
- the http status
 
 
- 
 
-