|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
gov.nasa.pds.tools.LabelParserException
public class LabelParserException
This class captures any exceptions that arise during label parsing. If possible the exception retains the context in which it occurred.
Field Summary | |
---|---|
protected File |
sourceFile
|
protected URI |
sourceURI
|
Constructor Summary | |
---|---|
LabelParserException(Dictionary sourceDictionary,
Integer lineNumber,
Integer column,
String key,
Constants.ProblemType type,
Object... arguments)
|
|
LabelParserException(Exception e,
Integer lineNumber,
Integer column,
Constants.ProblemType type)
|
|
LabelParserException(File sourceFile,
Integer lineNumber,
Integer column,
String key,
Constants.ProblemType type,
Object... arguments)
Use this constructor for exceptions to be reported about a file that can be traced back to a line and column |
|
LabelParserException(Label label,
Integer lineNumber,
Integer column,
String key,
Constants.ProblemType type,
Object... arguments)
Use this constructor for exceptions that are associated with a specific file but not on a given line (e.g. |
|
LabelParserException(Statement statement,
Integer column,
String key,
Constants.ProblemType type,
Object... arguments)
Use of this constructor is encouraged where possible as it retains the context of the exception. |
|
LabelParserException(String key,
Constants.ProblemType type,
Object... arguments)
Use this constructor for exceptions not associated to a specific file such as not being able to parse due to missing file or bad URL |
|
LabelParserException(URI sourceURI,
Integer lineNumber,
Integer column,
String key,
Constants.ProblemType type,
Object... arguments)
Use this constructor for exceptions to be reported about a URI that can be traced back to a line and column |
Method Summary | |
---|---|
Object[] |
getArguments()
|
Integer |
getColumn()
|
String |
getKey()
|
Integer |
getLineNumber()
|
File |
getSourceFile()
|
URI |
getSourceURI()
|
Constants.ProblemType |
getType()
|
String |
toString()
|
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final URI sourceURI
protected final File sourceFile
Constructor Detail |
---|
public LabelParserException(Statement statement, Integer column, String key, Constants.ProblemType type, Object... arguments)
statement
- in which the exception occurredcolumn
- within the file where the exception startedkey
- used to quickly associate lookup or filter this type of
exceptiontype
- classification of the problemarguments
- to be used in generating problem messagespublic LabelParserException(String key, Constants.ProblemType type, Object... arguments)
key
- used to quickly associate lookup or filter this type of
exceptiontype
- classification of the problemarguments
- to be used in generating problem messagespublic LabelParserException(Label label, Integer lineNumber, Integer column, String key, Constants.ProblemType type, Object... arguments)
label
- within which the exception occurredlineNumber
- within the file where the exception startedcolumn
- within the file where the exception startedkey
- used to quickly associate lookup or filter this type of
exceptiontype
- classification of the problemarguments
- to be used in generating problem messagespublic LabelParserException(File sourceFile, Integer lineNumber, Integer column, String key, Constants.ProblemType type, Object... arguments)
sourceFile
- within which the exception occurredlineNumber
- within the file where the exception startedcolumn
- within the file where the exception startedkey
- used to quickly associate lookup or filter this type of
exceptiontype
- classification of the problemarguments
- to be used in generating problem messagespublic LabelParserException(URI sourceURI, Integer lineNumber, Integer column, String key, Constants.ProblemType type, Object... arguments)
sourceURI
- within which the exception occurredlineNumber
- within the file where the exception startedcolumn
- within the file where the exception startedkey
- used to quickly associate lookup or filter this type of
exceptiontype
- classification of the problemarguments
- to be used in generating problem messagespublic LabelParserException(Dictionary sourceDictionary, Integer lineNumber, Integer column, String key, Constants.ProblemType type, Object... arguments)
sourceDictionary
- lineNumber
- column
- key
- type
- arguments
- public LabelParserException(Exception e, Integer lineNumber, Integer column, Constants.ProblemType type)
e
- lineNumber
- column
- type
- Method Detail |
---|
public URI getSourceURI()
public File getSourceFile()
public Integer getLineNumber()
public Integer getColumn()
public Constants.ProblemType getType()
public Object[] getArguments()
public String getKey()
public String toString()
toString
in class Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |