public final class SightlyCompilerException extends RuntimeException
SightlyCompiler during various processing operations.| Constructor and Description |
|---|
SightlyCompilerException()
Create a simple exception without any other information.
|
SightlyCompilerException(String message)
Create an exception with a provided message.
|
SightlyCompilerException(String message,
String offendingInput)
Create an exception that has information about offending syntax input.
|
SightlyCompilerException(String message,
String offendingInput,
int line,
int column)
Creates an exception that has information about offending syntax input, with additional details about the position of the error.
|
SightlyCompilerException(String message,
String offendingInput,
int line,
int column,
Throwable cause)
Creates an exception that has information about offending syntax input, with additional details about the position of the error.
|
SightlyCompilerException(String message,
Throwable cause)
Creates an exception with a provided message and cause.
|
SightlyCompilerException(Throwable cause)
Create an exception with information about the cause.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getColumn()
Returns the column in the line where the error occurred, if the information is available.
|
int |
getLine()
Returns the line where the error occurred, if the information is available.
|
String |
getOffendingInput()
Returns the offending input, as a raw string.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic SightlyCompilerException()
public SightlyCompilerException(String message)
message - the exception's messagepublic SightlyCompilerException(Throwable cause)
cause - the causepublic SightlyCompilerException(String message, String offendingInput)
message - the exception's messageoffendingInput - the offending input, as raw textpublic SightlyCompilerException(String message, String offendingInput, int line, int column)
message - the exception's messageoffendingInput - the offending input, as raw textline - the line where the error occurredcolumn - the column in the line where the error occurredpublic SightlyCompilerException(String message, Throwable cause)
message - the exception's messagecause - the causepublic SightlyCompilerException(String message, String offendingInput, int line, int column, Throwable cause)
message - the exception's messageoffendingInput - the offending input, as raw textline - the line where the error occurredcolumn - the column in the line where the error occurredcause - the causepublic String getOffendingInput()
public int getLine()
public int getColumn()
Copyright © 2017 The Apache Software Foundation. All rights reserved.