commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject cvs commit: jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly JellyException.java
Date Thu, 27 Jun 2002 14:08:28 GMT
jstrachan    2002/06/27 07:08:27

  Modified:    jelly/src/java/org/apache/commons/jelly JellyException.java
  Log:
  added more constructors to allow easier construction from different locations
  
  Revision  Changes    Path
  1.6       +16 -6     jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/JellyException.java
  
  Index: JellyException.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/JellyException.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- JellyException.java	25 Jun 2002 16:49:45 -0000	1.5
  +++ JellyException.java	27 Jun 2002 14:08:27 -0000	1.6
  @@ -102,8 +102,18 @@
       }
       
       public JellyException(Throwable cause, int columnNumber, int lineNumber) {
  -        super(cause.getLocalizedMessage());
  +        this(cause.getLocalizedMessage(), cause, columnNumber, lineNumber);
  +    }
  +    
  +    public JellyException(String reason, Throwable cause, int columnNumber, int lineNumber)
{
  +        super(reason);
           this.cause = cause;
  +        this.columnNumber = columnNumber;
  +        this.lineNumber = lineNumber;
  +    }
  +    
  +    public JellyException(String reason, int columnNumber, int lineNumber) {
  +        super(reason);
           this.columnNumber = columnNumber;
           this.lineNumber = lineNumber;
       }
  
  
  

--
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