APIdia Launch Partner
Top Description Fields Constructors Methods
javax.swing.text

public Class BadLocationException

extends Exception
Class Inheritance
Annotations
@SuppressWarnings:serial

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 JavaBeans has been added to the java.beans package. Please see java.beans.XMLEncoder.

Author
Timothy Prinzing

Field Summary

Modifier and TypeField and Description
private int

Constructor Summary

AccessConstructor and Description
public
BadLocationException(String
a string indicating what was wrong with the arguments
s
,
int
offset within the document that was requested >= 0
offs
)

Creates a new BadLocationException object.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the offset >= 0
offsetRequested
()

Returns the offset into the document that was not legal.

Field Detail

offsback to summary
private int offs

Constructor Detail

BadLocationExceptionback to summary
public BadLocationException(String s, int offs)

Creates a new BadLocationException object.

Parameters
s:String

a string indicating what was wrong with the arguments

offs:int

offset within the document that was requested >= 0

Method Detail

offsetRequestedback to summary
public int offsetRequested()

Returns the offset into the document that was not legal.

Returns:int

the offset >= 0