Package io.github.qishr.cascara.common.diagnostic
Class LocatableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.qishr.cascara.common.diagnostic.LocalizableRuntimeException
io.github.qishr.cascara.common.diagnostic.LocatableException
Direct Known Subtypes:
ParserException, TokenizerException, SerializerException, SchemaException, YamlEmitterException
public abstract class LocatableException
extends LocalizableRuntimeException
Constructor Summary
| Constructor | Description |
|---|---|
| LocatableException(URI uri, int line, int column, Throwable cause, DiagnosticCode code, Object[] details) | Standard Constructor |
| LocatableException(URI uri, int line, int column, DiagnosticCode code, Object[] details) | Standard constructor for parser-detected logic errors |
| LocatableException(URI uri, Throwable cause, DiagnosticCode code, Object[] details) | Constructor for when we only have a URI but no line or column |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
| public int | getLine() | |
| public int | getColumn() | |
| public URI | getUri() | |
| public String | getRawMessage() | |
| public String | getMessage() | |
| public String | getLocalizedMessage() |
Methods inherited from LocalizableRuntimeException
getCode, getDetails
Method Details
getLine
public int getLine()
getColumn
public int getColumn()
getUri
public URI getUri()
getRawMessage
public String getRawMessage()
getMessage
public String getMessage()
getLocalizedMessage
public String getLocalizedMessage()
Overrides: