C# Class Rhino.RhinoException

Inheritance: System.Exception
Afficher le fichier Open project: hazzik/Rhino.Net Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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
Résultat int

Details() public méthode

public Details ( ) : string
Résultat string

GetScriptStack() public méthode

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[]
Résultat Rhino.ScriptStackElement[]

GetScriptStackTrace() public méthode

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
Résultat string

InitColumnNumber() public méthode

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. ///
Résultat void

InitLineNumber() public méthode

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. ///
Résultat void

InitLineSource() public méthode

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. ///
Résultat void

InitSourceName() public méthode

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. ///
Résultat void

LineNumber() public méthode

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
Résultat int

LineSource() public méthode

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
Résultat string

PrintStackTrace() public méthode

public PrintStackTrace ( PrintWriter s ) : void
s Sharpen.PrintWriter
Résultat void

PrintStackTrace() public méthode

public PrintStackTrace ( TextWriter s ) : void
s System.IO.TextWriter
Résultat void

SourceName() public méthode

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
Résultat string

UseMozillaStackStyle() public static méthode

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
Résultat void

UsesMozillaStackStyle() public static méthode

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
Résultat bool