public class CompilerMessage extends CompilerException implements ILocalizableMessage
| Modifier and Type | Class and Description |
|---|---|
static class |
CompilerMessage.CompilerError |
static class |
CompilerMessage.CompilerInfo |
static class |
CompilerMessage.CompilerWarning |
| Modifier and Type | Field and Description |
|---|---|
int |
column |
String |
level |
int |
line |
String |
path |
| Constructor and Description |
|---|
CompilerMessage(String level,
String path,
int line,
int col) |
CompilerMessage(String level,
String path,
int line,
int col,
Throwable rootCause) |
| Modifier and Type | Method and Description |
|---|---|
int |
getColumn()
Returns the column number of the file that contains the error.
|
Exception |
getExceptionDetail() |
String |
getLevel()
Returns the compiler message severity level.
|
int |
getLine()
Returns the line number of the file that contains the error.
|
String |
getMessage() |
String |
getPath()
Returns the location of the file that contains the error.
|
boolean |
isPathAvailable() |
protected void |
noPath() |
void |
setColumn(int column) |
void |
setLine(int line) |
void |
setMessage(String msg) |
void |
setPath(String path) |
String |
toString()
Returns the message.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic String level
public String path
public int line
public int column
public String getLevel()
MessagegetLevel in interface MessageMessage.ERROR, Message.WARNING, or Message.INFO.Message.ERROR,
Message.WARNING,
Message.INFOpublic String getPath()
Messagepublic void setPath(String path)
setPath in interface ILocalizableMessagepublic int getLine()
Messagepublic void setLine(int line)
setLine in interface ILocalizableMessagepublic int getColumn()
Messagepublic void setColumn(int column)
setColumn in interface ILocalizableMessagepublic Exception getExceptionDetail()
getExceptionDetail in interface ILocalizableMessagepublic void setMessage(String msg)
public String getMessage()
getMessage in class Throwablepublic boolean isPathAvailable()
isPathAvailable in interface ILocalizableMessageprotected void noPath()
Copyright © 2016 The Apache Software Foundation. All rights reserved.