CreateError() private method

private CreateError ( NativeV8EngineProxy engine, string message, JSValueType errorType ) : HandleProxy*
engine NativeV8EngineProxy
message string
errorType JSValueType
return HandleProxy*
示例#1
0
 /// <summary>
 /// Calls the native V8 proxy library to create an error string for use within the V8 JavaScript environment.
 /// <para>Note: The error flag exists in the associated proxy object only.  If the handle is passed along to another operation, only the string message will get passed.</para>
 /// </summary>
 public InternalHandle CreateError(string message, JSValueType errorType)
 {
     if (errorType >= 0)
     {
         throw new InvalidOperationException("Invalid error type.");
     }
     return(V8NetProxy.CreateError(_NativeV8EngineProxy, message, errorType));
 }