C# Класс Rhino.RhinoException

Наследование: System.Exception
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ColumnNumber ( ) : int

The column number of the location of the error, or zero if unknown.

The column number of the location of the error, or zero if unknown.

Details ( ) : string
GetScriptStack ( ) : Rhino.ScriptStackElement[]

Get the script stack of this exception as an array of ScriptStackElement s. If optimization is enabled, this includes java stack elements whose source and method names suggest they have been generated by the Rhino script compiler.

GetScriptStackTrace ( ) : string

Get a string representing the script stack of this exception.

Get a string representing the script stack of this exception. If optimization is enabled, this includes java stack elements whose source and method names suggest they have been generated by the Rhino script compiler.

InitColumnNumber ( int columnNumber ) : void

Initialize the column number of the script statement causing the error.

Initialize the column number of the script statement causing the error.

InitLineNumber ( int lineNumber ) : void

Initialize the line number of the script statement causing the error.

Initialize the line number of the script statement causing the error.

InitLineSource ( string lineSource ) : void

Initialize the text of the source line containing the error.

Initialize the text of the source line containing the error.

InitSourceName ( string sourceName ) : void

Initialize the uri of the script source containing the error.

Initialize the uri of the script source containing the error.

LineNumber ( ) : int

Returns the line number of the statement causing the error, or zero if not available.

Returns the line number of the statement causing the error, or zero if not available.

LineSource ( ) : string

The source text of the line causing the error, or null if unknown.

The source text of the line causing the error, or null if unknown.

PrintStackTrace ( PrintWriter s ) : void
PrintStackTrace ( TextWriter s ) : void
SourceName ( ) : string

Get the uri of the script source containing the error, or null if that information is not available.

Get the uri of the script source containing the error, or null if that information is not available.

UseMozillaStackStyle ( bool flag ) : void

Tell subclasses of RhinoException whether to use the Mozilla/Firefox style of rendering script stacks (functionName()@fileName:lineNumber) instead of Rhino's own Java-inspired format ( at fileName:lineNumber (functionName))

UsesMozillaStackStyle ( ) : bool

Returns true if subclasses of RhinoException use the Mozilla/Firefox style of rendering script stacks (functionName()@fileName:lineNumber) instead of Rhino's own Java-inspired format ( at fileName:lineNumber (functionName)).

Returns true if subclasses of RhinoException use the Mozilla/Firefox style of rendering script stacks (functionName()@fileName:lineNumber) instead of Rhino's own Java-inspired format ( at fileName:lineNumber (functionName)).

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

Метод Описание
GenerateStackTrace ( ) : string
GetScriptStackTrace ( FilenameFilter filter ) : string
RecordErrorOrigin ( string sourceName, int lineNumber, string lineSource, int columnNumber ) : void
RhinoException ( ) : System
RhinoException ( string details ) : System

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

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

The column number of the location of the error, or zero if unknown.
The column number of the location of the error, or zero if unknown.
public ColumnNumber ( ) : int
Результат int

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

public Details ( ) : string
Результат string

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

Get the script stack of this exception as an array of ScriptStackElement s. If optimization is enabled, this includes java stack elements whose source and method names suggest they have been generated by the Rhino script compiler.
public GetScriptStack ( ) : Rhino.ScriptStackElement[]
Результат Rhino.ScriptStackElement[]

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

Get a string representing the script stack of this exception.
Get a string representing the script stack of this exception. If optimization is enabled, this includes java stack elements whose source and method names suggest they have been generated by the Rhino script compiler.
public GetScriptStackTrace ( ) : string
Результат string

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

Initialize the column number of the script statement causing the error.
Initialize the column number of the script statement causing the error.
if the method is called more then once.
public InitColumnNumber ( int columnNumber ) : void
columnNumber int /// the column number in the script source. /// It should be positive number. ///
Результат void

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

Initialize the line number of the script statement causing the error.
Initialize the line number of the script statement causing the error.
if the method is called more then once.
public InitLineNumber ( int lineNumber ) : void
lineNumber int /// the line number in the script source. /// It should be positive number. ///
Результат void

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

Initialize the text of the source line containing the error.
Initialize the text of the source line containing the error.
if the method is called more then once.
public InitLineSource ( string lineSource ) : void
lineSource string /// the text of the source line responsible for the error. /// It should not be null. ///
Результат void

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

Initialize the uri of the script source containing the error.
Initialize the uri of the script source containing the error.
if the method is called more then once.
public InitSourceName ( string sourceName ) : void
sourceName string /// the uri of the script source responsible for the error. /// It should not be null. ///
Результат void

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

Returns the line number of the statement causing the error, or zero if not available.
Returns the line number of the statement causing the error, or zero if not available.
public LineNumber ( ) : int
Результат int

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

The source text of the line causing the error, or null if unknown.
The source text of the line causing the error, or null if unknown.
public LineSource ( ) : string
Результат string

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

public PrintStackTrace ( PrintWriter s ) : void
s Sharpen.PrintWriter
Результат void

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

public PrintStackTrace ( TextWriter s ) : void
s System.IO.TextWriter
Результат void

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

Get the uri of the script source containing the error, or null if that information is not available.
Get the uri of the script source containing the error, or null if that information is not available.
public SourceName ( ) : string
Результат string

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

Tell subclasses of RhinoException whether to use the Mozilla/Firefox style of rendering script stacks (functionName()@fileName:lineNumber) instead of Rhino's own Java-inspired format ( at fileName:lineNumber (functionName))
public static UseMozillaStackStyle ( bool flag ) : void
flag bool whether to render stacks in Mozilla/Firefox style
Результат void

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

Returns true if subclasses of RhinoException use the Mozilla/Firefox style of rendering script stacks (functionName()@fileName:lineNumber) instead of Rhino's own Java-inspired format ( at fileName:lineNumber (functionName)).
Returns true if subclasses of RhinoException use the Mozilla/Firefox style of rendering script stacks (functionName()@fileName:lineNumber) instead of Rhino's own Java-inspired format ( at fileName:lineNumber (functionName)).
public static UsesMozillaStackStyle ( ) : bool
Результат bool