C# Class Rhino.RhinoException

Inheritance: System.Exception
Datei anzeigen Open project: hazzik/Rhino.Net Class Usage Examples

Public Methods

Method Description
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)).

Private Methods

Method Description
GenerateStackTrace ( ) : string
GetScriptStackTrace ( FilenameFilter filter ) : string
RecordErrorOrigin ( string sourceName, int lineNumber, string lineSource, int columnNumber ) : void
RhinoException ( ) : System
RhinoException ( string details ) : System

Method Details

ColumnNumber() public method

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
return int

Details() public method

public Details ( ) : string
return string

GetScriptStack() public method

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[]
return Rhino.ScriptStackElement[]

GetScriptStackTrace() public method

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
return string

InitColumnNumber() public method

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. ///
return void

InitLineNumber() public method

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. ///
return void

InitLineSource() public method

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. ///
return void

InitSourceName() public method

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. ///
return void

LineNumber() public method

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
return int

LineSource() public method

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
return string

PrintStackTrace() public method

public PrintStackTrace ( PrintWriter s ) : void
s Sharpen.PrintWriter
return void

PrintStackTrace() public method

public PrintStackTrace ( TextWriter s ) : void
s System.IO.TextWriter
return void

SourceName() public method

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
return string

UseMozillaStackStyle() public static method

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
return void

UsesMozillaStackStyle() public static method

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
return bool