public final class SightlyCompilerException
extends java.lang.RuntimeException
SightlyCompiler
during various processing operations.Constructor and Description |
---|
SightlyCompilerException()
Create a simple exception without any other information.
|
SightlyCompilerException(java.lang.String message)
Create an exception with a provided message.
|
SightlyCompilerException(java.lang.String message,
java.lang.String offendingInput)
Create an exception that has information about offending syntax input.
|
SightlyCompilerException(java.lang.String message,
java.lang.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(java.lang.String message,
java.lang.String offendingInput,
int line,
int column,
java.lang.Throwable cause)
Creates an exception that has information about offending syntax input, with additional details about the position of the error.
|
SightlyCompilerException(java.lang.String message,
java.lang.Throwable cause)
Creates an exception with a provided message and cause.
|
SightlyCompilerException(java.lang.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.
|
java.lang.String |
getOffendingInput()
Returns the offending input, as a raw string.
|
public SightlyCompilerException()
public SightlyCompilerException(java.lang.String message)
message
- the exception's messagepublic SightlyCompilerException(java.lang.Throwable cause)
cause
- the causepublic SightlyCompilerException(java.lang.String message, java.lang.String offendingInput)
message
- the exception's messageoffendingInput
- the offending input, as raw textpublic SightlyCompilerException(java.lang.String message, java.lang.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(java.lang.String message, java.lang.Throwable cause)
message
- the exception's messagecause
- the causepublic SightlyCompilerException(java.lang.String message, java.lang.String offendingInput, int line, int column, java.lang.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 java.lang.String getOffendingInput()
public int getLine()
public int getColumn()
Copyright © 2018 The Apache Software Foundation. All rights reserved.