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); }
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); }
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)); }