public static class ServletWebServer.Exception extends IOException
Constructor and Description |
---|
ServletWebServer.Exception(int pStatusCode,
String pMessage,
String pDescription)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns the error description.
|
String |
getMessage() |
int |
getStatusCode()
Returns the HTTP status code.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ServletWebServer.Exception(int pStatusCode, String pMessage, String pDescription)
pStatusCode
- The HTTP status code being sent to the client.pMessage
- The HTTP status message being sent to the client.pDescription
- The error description being sent to the client
in the response body.public String getMessage()
getMessage
in class Throwable
public String getDescription()
public int getStatusCode()
Copyright © 2001-2014 The Apache Software Foundation. All Rights Reserved.