/[classpath]/classpath/javax/swing/text/BadLocationException.java
ViewVC logotype

Diff of /classpath/javax/swing/text/BadLocationException.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by mark, Tue Apr 30 21:37:27 2002 UTC revision 1.3 by mkoch, Sun Mar 23 09:19:04 2003 UTC
# Line 40  package javax.swing.text; Line 40  package javax.swing.text;
40    
41  public class BadLocationException extends Exception  public class BadLocationException extends Exception
42  {      {    
43      BadLocationException()    int offset;
44      {    
45      }    /**
46       * Constructs a <code>BadLocationException</code>
47       *
48       * @param str A string indicating what was wrong with the arguments
49       * @param offset Offset within the document that was requested &gt;= 0
50       */
51      public BadLocationException (String str, int offset)
52      {
53        super (str);
54        this.offset = offset;
55      }
56    
57      /**
58       * Returns the offset into the document that was not legal
59       */
60      public int offsetRequested ()
61      {
62        return offset;
63      }
64  }  }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26