C# Class Rhino.Tools.ToolErrorReporter

Error reporter for tools.
Error reporter for tools. Currently used by both the shell and the compiler.
Inheritance: ErrorReporter
Mostra file Open project: hazzik/Rhino.Net Class Usage Examples

Public Methods

Method Description
Error ( string message, string sourceName, int line, string lineSource, int lineOffset ) : void
GetMessage ( string messageId ) : string

Look up the message corresponding to messageId in the org.mozilla.javascript.tools.shell.resources.Messages property file.

Look up the message corresponding to messageId in the org.mozilla.javascript.tools.shell.resources.Messages property file. For internationalization support.

GetMessage ( string messageId, object args ) : string
GetMessage ( string messageId, object arg1, object arg2 ) : string
GetMessage ( string messageId, string argument ) : string
HasReportedError ( ) : bool
IsReportingWarnings ( ) : bool
ReportException ( ErrorReporter er, RhinoException ex ) : void
ReportException ( RhinoException ex ) : void
RuntimeError ( string message, string sourceName, int line, string lineSource, int lineOffset ) : EvaluatorException
SetIsReportingWarnings ( bool reportWarnings ) : void
ToolErrorReporter ( bool reportWarnings ) : System
ToolErrorReporter ( bool reportWarnings, TextWriter err ) : System
Warning ( string message, string sourceName, int line, string lineSource, int lineOffset ) : void

Private Methods

Method Description
BuildIndicator ( int offset ) : string
GetExceptionMessage ( RhinoException ex ) : string
ReportErrorMessage ( string message, string sourceName, int line, string lineSource, int lineOffset, bool justWarning ) : void

Method Details

Error() public method

public Error ( string message, string sourceName, int line, string lineSource, int lineOffset ) : void
message string
sourceName string
line int
lineSource string
lineOffset int
return void

GetMessage() public static method

Look up the message corresponding to messageId in the org.mozilla.javascript.tools.shell.resources.Messages property file.
Look up the message corresponding to messageId in the org.mozilla.javascript.tools.shell.resources.Messages property file. For internationalization support.
public static GetMessage ( string messageId ) : string
messageId string
return string

GetMessage() public static method

public static GetMessage ( string messageId, object args ) : string
messageId string
args object
return string

GetMessage() public static method

public static GetMessage ( string messageId, object arg1, object arg2 ) : string
messageId string
arg1 object
arg2 object
return string

GetMessage() public static method

public static GetMessage ( string messageId, string argument ) : string
messageId string
argument string
return string

HasReportedError() public method

public HasReportedError ( ) : bool
return bool

IsReportingWarnings() public method

public IsReportingWarnings ( ) : bool
return bool

ReportException() public static method

public static ReportException ( ErrorReporter er, RhinoException ex ) : void
er ErrorReporter
ex Rhino.RhinoException
return void

ReportException() public method

public ReportException ( RhinoException ex ) : void
ex Rhino.RhinoException
return void

RuntimeError() public method

public RuntimeError ( string message, string sourceName, int line, string lineSource, int lineOffset ) : EvaluatorException
message string
sourceName string
line int
lineSource string
lineOffset int
return Rhino.EvaluatorException

SetIsReportingWarnings() public method

public SetIsReportingWarnings ( bool reportWarnings ) : void
reportWarnings bool
return void

ToolErrorReporter() public method

public ToolErrorReporter ( bool reportWarnings ) : System
reportWarnings bool
return System

ToolErrorReporter() public method

public ToolErrorReporter ( bool reportWarnings, TextWriter err ) : System
reportWarnings bool
err System.IO.TextWriter
return System

Warning() public method

public Warning ( string message, string sourceName, int line, string lineSource, int lineOffset ) : void
message string
sourceName string
line int
lineSource string
lineOffset int
return void