org.apache.xmlrpc.webserver

Class ServletWebServer.Exception

public static class ServletWebServer.Exception extends IOException

This exception is thrown by the request handling classes, advising the server, that it should return an error response.
Constructor Summary
Exception(int pStatusCode, String pMessage, String pDescription)
Creates a new instance.
Method Summary
StringgetDescription()
Returns the error description.
StringgetMessage()
intgetStatusCode()
Returns the HTTP status code.

Constructor Detail

Exception

public Exception(int pStatusCode, String pMessage, String pDescription)
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 Detail

getDescription

public String getDescription()
Returns the error description. The server will send the description as plain text in the response body.

Returns: The error description.

getMessage

public String getMessage()

getStatusCode

public int getStatusCode()
Returns the HTTP status code.

Returns: The status code.

Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.