commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: jakarta-commons/latka/src/java/org/apache/commons/latka/event RequestErrorEvent.java
Date Sat, 19 Jan 2002 04:35:46 GMT
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:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message