com.ibm.wbi.protocol.http.beans
Class ErrorPageException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.ibm.wbi.protocol.http.beans.ErrorPageException
- All Implemented Interfaces:
- java.io.Serializable
- public class ErrorPageException
- extends java.lang.Exception
Typically thrown when an error condition occurs in a Generator.
The object contains sufficient information to deliver an error
page to the client. An ErrorPageGenerator can be constructed from
an instance of this class. Forwarding a request to the generator
will send the appropriate response back to the client.
- See Also:
ErrorPageGenerator, Serialized Form
|
Field Summary |
static java.lang.String |
COPYRIGHT
IBM copyright information |
|
Constructor Summary |
ErrorPageException(int rc,
java.lang.String rt)
Construct an instance with the given information. |
ErrorPageException(int rc,
java.lang.String rt,
java.lang.String pt)
Construct an instance with the given information |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- IBM copyright information
ErrorPageException
public ErrorPageException(int rc,
java.lang.String rt,
java.lang.String pt)
- Construct an instance with the given information
- Parameters:
rc - the HTTP response code to include in the response (e.g. 200, meaning "Ok")rt - the HTTP response text to include in the response (e.g. "Ok")pt - the HTML markup to be returned to the client
ErrorPageException
public ErrorPageException(int rc,
java.lang.String rt)
- Construct an instance with the given information. HTML markup will be
automatically constructed from the response code and response text,
displaying in the browser as <H1> text.
- Parameters:
rc - The HTTP response code to include in the response
(e.g. 200, meaning "Ok")rt - The HTTP response text to include in the response
(e.g. "Ok")