private void executeRejectHandler(Action <Exception> callback, IRejectable rejectable, Exception value) { try { callback(value); } catch (Exception exception) { rejectable.reject(exception); } }
private void executeResolveHandler(Action callback, IRejectable rejectable) { try { callback(); } catch (Exception exception) { rejectable.reject(exception); } }