Exemplo n.º 1
0
 public virtual void Assert(NSJSFunctionCallbackInfo arguments, bool condition, string message, string detailMessage)
 {
     if (arguments == null)
     {
         throw new ArgumentNullException("arguments");
     }
     NSJSException.Throw(arguments.VirtualMachine, string.Format("assert failed\r\n{0}\r\n{1}", message, detailMessage));
     Assert(condition, message, detailMessage);
 }
Exemplo n.º 2
0
 public virtual void Throw(NSJSFunctionCallbackInfo arguments, NSJSValue exception)
 {
     if (arguments == null)
     {
         throw new ArgumentNullException("arguments");
     }
     if (exception == null)
     {
         throw new ArgumentNullException("exception");
     }
     NSJSException.Throw(exception);
 }
Exemplo n.º 3
0
 public static void Throw(NSJSVirtualMachine machine, Exception exception)
 {
     if (machine == null)
     {
         throw new ArgumentNullException("machine");
     }
     if (exception == null)
     {
         throw new ArgumentNullException("exception");
     }
     NSJSException.Throw(machine, Throwable.FormatMessage(exception));
 }