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, setStackTrace
public String level
public String path
public int line
public int column
public String getLevel()
Message
getLevel
in interface Message
Message.ERROR
, Message.WARNING
, or Message.INFO
.Message.ERROR
,
Message.WARNING
,
Message.INFO
public String getPath()
Message
public void setPath(String path)
setPath
in interface ILocalizableMessage
public int getLine()
Message
public void setLine(int line)
setLine
in interface ILocalizableMessage
public int getColumn()
Message
public void setColumn(int column)
setColumn
in interface ILocalizableMessage
public Exception getExceptionDetail()
getExceptionDetail
in interface ILocalizableMessage
public void setMessage(String msg)
public String getMessage()
getMessage
in class Throwable
public boolean isPathAvailable()
isPathAvailable
in interface ILocalizableMessage
protected void noPath()
Copyright © 2016 The Apache Software Foundation. All rights reserved.