|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.github.bringking.maven.less.MojoErrorReporter
public class MojoErrorReporter
JS execution error reporter for maven plugins.
| Constructor Summary | |
|---|---|
MojoErrorReporter(org.apache.maven.plugin.logging.Log log,
boolean acceptWarnings)
Create a new error reporter. |
|
| Method Summary | |
|---|---|
void |
error(String message,
String sourceName,
int line,
String lineSource,
int lineOffset)
Report an error. |
int |
getErrorCnt()
|
int |
getWarningCnt()
|
org.mozilla.javascript.EvaluatorException |
runtimeError(String message,
String sourceName,
int line,
String lineSource,
int lineOffset)
Report an runtime error. |
void |
setDefaultFileName(String filename)
Set the default filename to report errors against. |
void |
warning(String message,
String sourceName,
int line,
String lineSource,
int lineOffset)
Report an warning. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MojoErrorReporter(org.apache.maven.plugin.logging.Log log,
boolean acceptWarnings)
log - the log for the executing mojoacceptWarnings - whether or not to report warnings| Method Detail |
|---|
public void setDefaultFileName(String filename)
filename - the filename to use
public void error(String message,
String sourceName,
int line,
String lineSource,
int lineOffset)
error in interface org.mozilla.javascript.ErrorReportermessage - the error messagesourceName - the name of the source the error occurred inline - the line number the error occurred onlineSource - the contents of the line the error occurred onlineOffset - the position in the line where the error occurred
public org.mozilla.javascript.EvaluatorException runtimeError(String message,
String sourceName,
int line,
String lineSource,
int lineOffset)
runtimeError in interface org.mozilla.javascript.ErrorReportermessage - the runtime error messagesourceName - the name of the source the runtime error occurred inline - the line number the runtime error occurred onlineSource - the contents of the line the runtime error occurred onlineOffset - the position in the line where the runtime error occurred
public void warning(String message,
String sourceName,
int line,
String lineSource,
int lineOffset)
warning in interface org.mozilla.javascript.ErrorReportermessage - the warning messagesourceName - the name of the source the warning occurred inline - the line number the warning occurred onlineSource - the contents of the line the warning occurred onlineOffset - the position in the line where the warning occurredpublic int getErrorCnt()
public int getWarningCnt()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||