示例#1
0
 public JavaScriptException(ErrorConstructor errorConstructor, string message, Exception inner)
     : base(message, inner)
 {
     if (inner != null)
     {
         _errorObject = errorConstructor.Construct(new JsValue[] { message, inner.ToString() });
     }
     else
     {
         _errorObject = errorConstructor.Construct(new JsValue[] { message });
     }
 }
示例#2
0
 public JavaScriptException(ErrorConstructor errorConstructor, string message)
     : base(message)
 {
     _errorObject = errorConstructor.Construct(new JsValue[] { message });
 }
示例#3
0
 public JavaScriptException(ErrorConstructor errorConstructor) : base("")
 {
     _errorObject = errorConstructor.Construct(Arguments.Empty);
 }
示例#4
0
 public JavaScriptException(ErrorConstructor errorConstructor) : base("")
 {
     _errorObject = errorConstructor.Construct(Arguments.Empty);
     CallStack    = errorConstructor.Engine.CallStack;
 }
示例#5
0
 public JavaScriptException(ErrorConstructor errorConstructor, string message, Exception innerException)
     : base(message, innerException)
 {
     Error = errorConstructor.Construct(new JsValue[] { message });
 }