public class javax.swing.text
BadLocationException


Show All Login
Java SE 6
  
Extends: Throwable > Exception
Details
This exception is to report bad locations within a document model (that is, attempts to reference a location that doesn't exist).

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeansTM has been added to the java.beans package. Please see java.beans.XMLEncoder.
version1.21 11/17/05


Constructors
public BadLocationException(String s, int offs) Details
Creates a new BadLocationException object.
sa string indicating what was wrong with the arguments
offsoffset within the document that was requested >= 0offset within the document that was requested >= 0

Methods
public int offsetRequested() Details
Returns the offset into the document that was not legal.
returnthe offset >= 0the offset >= 0