ScriptRuntimeException

Overview

This class is raised when an EcmaScript exception is raised and holds the object that was thrown.

Location

 

constructor

 

constructor(original: Object)

 

ScriptRuntimeException(Object original)

 

Sub New(original As Object)

Parameters:

  • original:

Method_Unwrap

 

class var Method_Unwrap: MethodInfo;

 

static MethodInfo Method_Unwrap

 

Shared FIELD Method_Unwrap() As MethodInfo

Method_Wrap

 

class var Method_Wrap: MethodInfo;

 

static MethodInfo Method_Wrap

 

Shared FIELD Method_Wrap() As MethodInfo

Original

Original object that was thrown.

 

property Original: Object read;

 

Object Original { get; }

 

ReadOnly Property Original() As Object

SafeEcmaScriptToObject

Calls the toString method if it's an EcmaScript object, else uses .NET logic.

 

class method SafeEcmaScriptToObject(o: Object): String

 

static String SafeEcmaScriptToObject(Object o)

 

Shared Function SafeEcmaScriptToObject(o As Object) As String

Parameters:

  • o:

ToString

 

method ToString: String

 

String ToString()

 

Function ToString() As String

Unwrap

Unwrap the object, if it's wrapped in a ScriptRuntimeException.

 

class method Unwrap(arg: Object): Object

 

static Object Unwrap(Object arg)

 

Shared Function Unwrap(arg As Object) As Object

Parameters:

  • arg:

Wrap

Wrap an object in ScriptRuntimException if it's not an Exception descendant, else just returns it.

 

class method Wrap(arg: Object): Exception

 

static Exception Wrap(Object arg)

 

Shared Function Wrap(arg As Object) As Exception

Parameters:

  • arg:

 

Method_Unwrap

 

class var Method_Unwrap: MethodInfo;

 

static MethodInfo Method_Unwrap

 

Shared FIELD Method_Unwrap() As MethodInfo

Method_Wrap

 

class var Method_Wrap: MethodInfo;

 

static MethodInfo Method_Wrap

 

Shared FIELD Method_Wrap() As MethodInfo

 

Original

Original object that was thrown.

 

property Original: Object read;

 

Object Original { get; }

 

ReadOnly Property Original() As Object

 

SafeEcmaScriptToObject

Calls the toString method if it's an EcmaScript object, else uses .NET logic.

 

class method SafeEcmaScriptToObject(o: Object): String

 

static String SafeEcmaScriptToObject(Object o)

 

Shared Function SafeEcmaScriptToObject(o As Object) As String

Parameters:

  • o:

Unwrap

Unwrap the object, if it's wrapped in a ScriptRuntimeException.

 

class method Unwrap(arg: Object): Object

 

static Object Unwrap(Object arg)

 

Shared Function Unwrap(arg As Object) As Object

Parameters:

  • arg:

Wrap

Wrap an object in ScriptRuntimException if it's not an Exception descendant, else just returns it.

 

class method Wrap(arg: Object): Exception

 

static Exception Wrap(Object arg)

 

Shared Function Wrap(arg As Object) As Exception

Parameters:

  • arg:

 

constructor

 

constructor(original: Object)

 

ScriptRuntimeException(Object original)

 

Sub New(original As Object)

Parameters:

  • original:

ToString

 

method ToString: String

 

String ToString()

 

Function ToString() As String