C# Класс Rhino.Tools.ToolErrorReporter

Error reporter for tools.
Error reporter for tools. Currently used by both the shell and the compiler.
Наследование: ErrorReporter
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
BuildIndicator ( int offset ) : string
GetExceptionMessage ( RhinoException ex ) : string
ReportErrorMessage ( string message, string sourceName, int line, string lineSource, int lineOffset, bool justWarning ) : void

Описание методов

Error() публичный Метод

public Error ( string message, string sourceName, int line, string lineSource, int lineOffset ) : void
message string
sourceName string
line int
lineSource string
lineOffset int
Результат void

GetMessage() публичный статический Метод

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
Результат string

GetMessage() публичный статический Метод

public static GetMessage ( string messageId, object args ) : string
messageId string
args object
Результат string

GetMessage() публичный статический Метод

public static GetMessage ( string messageId, object arg1, object arg2 ) : string
messageId string
arg1 object
arg2 object
Результат string

GetMessage() публичный статический Метод

public static GetMessage ( string messageId, string argument ) : string
messageId string
argument string
Результат string

HasReportedError() публичный Метод

public HasReportedError ( ) : bool
Результат bool

IsReportingWarnings() публичный Метод

public IsReportingWarnings ( ) : bool
Результат bool

ReportException() публичный статический Метод

public static ReportException ( ErrorReporter er, RhinoException ex ) : void
er ErrorReporter
ex Rhino.RhinoException
Результат void

ReportException() публичный Метод

public ReportException ( RhinoException ex ) : void
ex Rhino.RhinoException
Результат void

RuntimeError() публичный Метод

public RuntimeError ( string message, string sourceName, int line, string lineSource, int lineOffset ) : EvaluatorException
message string
sourceName string
line int
lineSource string
lineOffset int
Результат Rhino.EvaluatorException

SetIsReportingWarnings() публичный Метод

public SetIsReportingWarnings ( bool reportWarnings ) : void
reportWarnings bool
Результат void

ToolErrorReporter() публичный Метод

public ToolErrorReporter ( bool reportWarnings ) : System
reportWarnings bool
Результат System

ToolErrorReporter() публичный Метод

public ToolErrorReporter ( bool reportWarnings, TextWriter err ) : System
reportWarnings bool
err System.IO.TextWriter
Результат System

Warning() публичный Метод

public Warning ( string message, string sourceName, int line, string lineSource, int lineOffset ) : void
message string
sourceName string
line int
lineSource string
lineOffset int
Результат void