You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by di...@apache.org on 2002/01/19 05:35:46 UTC
cvs commit: jakarta-commons/latka/src/java/org/apache/commons/latka/event RequestErrorEvent.java
dion 02/01/18 20:35:46
Modified: latka/src/java/org/apache/commons/latka/event
RequestErrorEvent.java
Log:
Updated javadocs
Revision Changes Path
1.5 +28 -8 jakarta-commons/latka/src/java/org/apache/commons/latka/event/RequestErrorEvent.java
Index: RequestErrorEvent.java
===================================================================
RCS file: /home/cvs/jakarta-commons/latka/src/java/org/apache/commons/latka/event/RequestErrorEvent.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- RequestErrorEvent.java 23 Aug 2001 16:24:25 -0000 1.4
+++ RequestErrorEvent.java 19 Jan 2002 04:35:46 -0000 1.5
@@ -63,14 +63,34 @@
import org.apache.commons.latka.http.Response;
import org.apache.commons.latka.http.Session;
+/**
+ * An event that represents an error that occurred processing a request
+ */
public class RequestErrorEvent extends BaseRequestEvent implements RequestEvent {
- public RequestErrorEvent(Request request, Response response, Throwable t) {
- super(request,response);
- _t = t;
- }
- Throwable _t = null;
+ // FIXME: No need to implement RequestEvent as BaseRequestEvent already does
+
+ /**
+ * holds the error
+ */
+ Throwable _t = null; // FIXME: Scope?
+
+ /**
+ * Create an event from the request, response and some Throwable
+ * @param request the request in error
+ * @param response the response generated
+ * @param t Some throwable representing the error, e.g. an Exception
+ */
+ public RequestErrorEvent(Request request, Response response, Throwable t) {
+ super(request,response);
+ _t = t;
+ }
- public Throwable getError() {
- return _t;
- }
+
+ /**
+ * provides access to the Throwable representing the request error
+ * @return the Throwable of the request error
+ */
+ public Throwable getError() {
+ return _t;
+ }
}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>