Package org.apache.xmlrpc.webserver
Class ServletWebServer.Exception
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.xmlrpc.webserver.ServletWebServer.Exception
- All Implemented Interfaces:
Serializable
- Enclosing class:
ServletWebServer
This exception is thrown by the request handling classes,
advising the server, that it should return an error response.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
private static final long
private final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the error description.int
Returns the HTTP status code.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
statusCode
private final int statusCode -
description
-
-
Constructor Details
-
Exception
Creates a new instance.- Parameters:
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.
-
-
Method Details
-
getMessage
- Overrides:
getMessage
in classThrowable
-
getDescription
Returns the error description. The server will send the description as plain text in the response body.- Returns:
- The error description.
-
getStatusCode
public int getStatusCode()Returns the HTTP status code.- Returns:
- The status code.
-