public static class ServletWebServer.Exception extends IOException
| Constructor and Description |
|---|
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, toStringpublic 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 Throwablepublic String getDescription()
public int getStatusCode()
Copyright © 2001–2025 The Apache Software Foundation. All rights reserved.