Class SimpleHttpFailureException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.github.fmjsjx.libnetty.http.exception.HttpRuntimeException
-
- com.github.fmjsjx.libnetty.http.server.exception.HttpFailureException
-
- com.github.fmjsjx.libnetty.http.server.exception.SimpleHttpFailureException
-
- All Implemented Interfaces:
java.io.Serializable
public class SimpleHttpFailureException extends HttpFailureException
The default implementation ofHttpFailureException.- Since:
- 1.1
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SimpleHttpFailureException(io.netty.handler.codec.http.HttpResponseStatus status, java.lang.String message)Constructs a newSimpleHttpFailureExceptioninstance with the specified status and message.SimpleHttpFailureException(io.netty.handler.codec.http.HttpResponseStatus status, java.lang.String message, java.lang.Throwable cause)Constructs a newSimpleHttpFailureExceptioninstance with the specified status, message and cause.SimpleHttpFailureException(java.lang.String message)Constructs a newSimpleHttpFailureExceptioninstance with the status "500 Internal Server Error" and the specified message.SimpleHttpFailureException(java.lang.String message, java.lang.Throwable cause)Constructs a newSimpleHttpFailureExceptioninstance with the status "500 Internal Server Error" and the specified message and cause.SimpleHttpFailureException(java.lang.Throwable cause)Constructs a newSimpleHttpFailureExceptioninstance with the status "500 Internal Server Error" and the specified cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.netty.handler.codec.http.HttpResponseStatusstatus()Returns the failure status.-
Methods inherited from class com.github.fmjsjx.libnetty.http.server.exception.HttpFailureException
getLocalizedMessage
-
-
-
-
Constructor Detail
-
SimpleHttpFailureException
public SimpleHttpFailureException(io.netty.handler.codec.http.HttpResponseStatus status, java.lang.String message, java.lang.Throwable cause)Constructs a newSimpleHttpFailureExceptioninstance with the specified status, message and cause.- Parameters:
status- the failure statusmessage- the detail messagecause- the cause
-
SimpleHttpFailureException
public SimpleHttpFailureException(io.netty.handler.codec.http.HttpResponseStatus status, java.lang.String message)Constructs a newSimpleHttpFailureExceptioninstance with the specified status and message.- Parameters:
status- the failure statusmessage- the detail message
-
SimpleHttpFailureException
public SimpleHttpFailureException(java.lang.String message, java.lang.Throwable cause)Constructs a newSimpleHttpFailureExceptioninstance with the status "500 Internal Server Error" and the specified message and cause.- Parameters:
message- the detail messagecause- the cause
-
SimpleHttpFailureException
public SimpleHttpFailureException(java.lang.String message)
Constructs a newSimpleHttpFailureExceptioninstance with the status "500 Internal Server Error" and the specified message.- Parameters:
message- the detail message
-
SimpleHttpFailureException
public SimpleHttpFailureException(java.lang.Throwable cause)
Constructs a newSimpleHttpFailureExceptioninstance with the status "500 Internal Server Error" and the specified cause.- Parameters:
cause- the cause
-
-
Method Detail
-
status
public io.netty.handler.codec.http.HttpResponseStatus status()
Description copied from class:HttpFailureExceptionReturns the failure status.- Specified by:
statusin classHttpFailureException- Returns:
- the failure status
-
-