C# Class Jurassic.JavaScriptException

Inheritance: System.Exception
显示文件 Open project: paulbartrum/jurassic

Public Methods

Method Description
JavaScriptException ( ScriptEngine engine, ErrorType type, string message ) : System

Creates a new JavaScriptException instance.

JavaScriptException ( ScriptEngine engine, ErrorType type, string message, Exception innerException ) : System

Creates a new JavaScriptException instance.

JavaScriptException ( ScriptEngine engine, ErrorType type, string message, int lineNumber, string sourcePath ) : System

Creates a new JavaScriptException instance.

JavaScriptException ( ScriptEngine engine, ErrorType type, string message, int lineNumber, string sourcePath, string functionName ) : System

Creates a new JavaScriptException instance.

JavaScriptException ( object errorObject, int lineNumber, string sourcePath ) : System

Creates a new JavaScriptException instance based on the given object.

JavaScriptException ( object errorObject, int lineNumber, string sourcePath, string functionName ) : System

Creates a new JavaScriptException instance based on the given object.

Private Methods

Method Description
CreateError ( ScriptEngine engine, ErrorType type, string message ) : ErrorInstance

Creates an error object with the given message.

PopulateStackTrace ( ) : void

Populates the error object stack trace, if the error object is an Error.

Method Details

JavaScriptException() public method

Creates a new JavaScriptException instance.
public JavaScriptException ( ScriptEngine engine, ErrorType type, string message ) : System
engine ScriptEngine The script engine used to create the error object.
type ErrorType The type of error, e.g. Error, RangeError, etc.
message string A description of the error.
return System

JavaScriptException() public method

Creates a new JavaScriptException instance.
public JavaScriptException ( ScriptEngine engine, ErrorType type, string message, Exception innerException ) : System
engine ScriptEngine The current script environment.
type ErrorType The type of error, e.g. Error, RangeError, etc.
message string A description of the error.
innerException System.Exception The exception that is the cause of the current exception, /// or null if no inner exception is specified.
return System

JavaScriptException() public method

Creates a new JavaScriptException instance.
public JavaScriptException ( ScriptEngine engine, ErrorType type, string message, int lineNumber, string sourcePath ) : System
engine ScriptEngine The current script environment.
type ErrorType The type of error, e.g. Error, RangeError, etc.
message string A description of the error.
lineNumber int The line number in the source file the error occurred on.
sourcePath string The path or URL of the source file. Can be null.
return System

JavaScriptException() public method

Creates a new JavaScriptException instance.
public JavaScriptException ( ScriptEngine engine, ErrorType type, string message, int lineNumber, string sourcePath, string functionName ) : System
engine ScriptEngine The current script environment.
type ErrorType The type of error, e.g. Error, RangeError, etc.
message string A description of the error.
lineNumber int The line number in the source file the error occurred on.
sourcePath string The path or URL of the source file. Can be null.
functionName string The name of the function. Can be null.
return System

JavaScriptException() public method

Creates a new JavaScriptException instance based on the given object.
public JavaScriptException ( object errorObject, int lineNumber, string sourcePath ) : System
errorObject object The javascript object that was thrown.
lineNumber int The line number in the source file the error occurred on.
sourcePath string The path or URL of the source file. Can be null.
return System

JavaScriptException() public method

Creates a new JavaScriptException instance based on the given object.
public JavaScriptException ( object errorObject, int lineNumber, string sourcePath, string functionName ) : System
errorObject object The javascript object that was thrown.
lineNumber int The line number in the source file the error occurred on.
sourcePath string The path or URL of the source file. Can be null.
functionName string The name of the function. Can be null.
return System