|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception edu.umd.cfar.lamp.viper.util.BadDataException
This is thrown when the information entered from a file into an attribute's value field does not conform. For example, setting a bbox to "false". If you are passing a parse error, please set the character offset for the ErrorWriter, as it helps it find the error on multiline files.
CountingStringTokenizer
,
VReader
,
Serialized FormConstructor Summary | |
BadDataException()
Constructs a new BadDataException with no message. |
|
BadDataException(java.lang.String s)
Constructs a new BadDataException with the given message. |
|
BadDataException(java.lang.String s,
int startCharacter,
int endCharacter)
Constructs a new BadDataException with the given message and indicates where in the line is the erroneous text. |
Method Summary | |
int |
getEnd()
Gets the last character offset. |
int |
getStart()
Gets the first character offset. |
boolean |
isChar()
Determines if the error message contains data about where the error occurred. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public BadDataException()
public BadDataException(java.lang.String s)
s
- The detail message.public BadDataException(java.lang.String s, int startCharacter, int endCharacter)
s
- The detail message.startCharacter
- The offset of the first character.
If set up properly, the theory is that emacs could put
your cursor here.endCharacter
- The last character. In theory, a good
ErrorWriter could then underline the error, like jikes does.Method Detail |
public boolean isChar()
true
if there is offset info.public int getStart()
public int getEnd()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |