public class LabelParserException extends Exception
Modifier and Type | Field and Description |
---|---|
protected File |
sourceFile |
protected URI |
sourceURI |
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
Object[] |
getArguments() |
Integer |
getColumn() |
String |
getKey() |
Integer |
getLineNumber() |
File |
getSourceFile() |
URI |
getSourceURI() |
Statement |
getStatement() |
Constants.ProblemType |
getType() |
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
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
- public URI getSourceURI()
public File getSourceFile()
public Integer getLineNumber()
public Integer getColumn()
public Constants.ProblemType getType()
public Object[] getArguments()
public String getKey()
public Statement getStatement()
Copyright © 2005–2015 Planetary Data System. All rights reserved.