Home
last modified time | relevance | path

Searched refs:reason (Results 1 – 25 of 875) sorted by relevance

12345678910>>...35

/plugin/matrixnotifierwas/vendor/guzzlehttp/promises/src/
DRejectedPromise.php17 private $reason; variable in GuzzleHttp\\Promise\\RejectedPromise
20 * @param mixed $reason
22 public function __construct($reason) argument
24 if (is_object($reason) && method_exists($reason, 'then')) {
30 $this->reason = $reason;
43 $reason = $this->reason;
45 $queue->add(static function () use ($p, $reason, $onRejected): void {
49 $p->resolve($onRejected($reason));
68 throw Create::exceptionFor($this->reason);
84 public function reject($reason): void argument
[all …]
DRejectionException.php15 private $reason; variable in GuzzleHttp\\Promise\\RejectionException
18 * @param mixed $reason Rejection reason.
21 public function __construct($reason, string $description = null) argument
23 $this->reason = $reason;
29 } elseif (is_string($reason)
30 || (is_object($reason) && method_exists($reason, '__toString'))
32 $message .= ' with reason: '.$this->reason;
33 } elseif ($reason instanceof \JsonSerializable) {
34 $message .= ' with reason: '.json_encode($this->reason, JSON_PRETTY_PRINT);
47 return $this->reason;
DCreate.php37 * @param mixed $reason Promise or reason.
39 public static function rejectionFor($reason): PromiseInterface argument
41 if ($reason instanceof PromiseInterface) {
42 return $reason;
45 return new RejectedPromise($reason);
51 * @param mixed $reason
53 public static function exceptionFor($reason): \Throwable argument
55 if ($reason instanceof \Throwable) {
56 return $reason;
59 return new RejectionException($reason);
/plugin/authgooglesheets/vendor/guzzlehttp/promises/src/
DRejectionException.php13 private $reason; variable in GuzzleHttp\\Promise\\RejectionException
16 * @param mixed $reason Rejection reason.
19 public function __construct($reason, $description = null) argument
21 $this->reason = $reason;
27 } elseif (is_string($reason)
28 || (is_object($reason) && method_exists($reason, '__toString'))
30 $message .= ' with reason: ' . $this->reason;
31 } elseif ($reason instanceof \JsonSerializable) {
33 . json_encode($this->reason, JSON_PRETTY_PRINT);
46 return $this->reason;
DRejectedPromise.php13 private $reason; variable in GuzzleHttp\\Promise\\RejectedPromise
15 public function __construct($reason) argument
17 if (is_object($reason) && method_exists($reason, 'then')) {
23 $this->reason = $reason;
36 $reason = $this->reason;
38 $queue->add(static function () use ($p, $reason, $onRejected) {
42 $p->resolve($onRejected($reason));
64 throw Create::exceptionFor($this->reason);
80 public function reject($reason) argument
82 if ($reason !== $this->reason) {
DCreate.php36 * @param mixed $reason Promise or reason.
40 public static function rejectionFor($reason) argument
42 if ($reason instanceof PromiseInterface) {
43 return $reason;
46 return new RejectedPromise($reason);
52 * @param mixed $reason
56 public static function exceptionFor($reason) argument
58 if ($reason instanceof \Exception || $reason instanceof \Throwable) {
59 return $reason;
62 return new RejectionException($reason);
/plugin/elasticsearch/vendor/react/promise/src/
DUnhandledRejectionException.php7 private $reason; variable in React\\Promise\\UnhandledRejectionException
9 public static function resolve($reason) argument
11 if ($reason instanceof \Exception || $reason instanceof \Throwable) {
12 return $reason;
15 return new static($reason);
18 public function __construct($reason) argument
20 $this->reason = $reason;
22 $message = \sprintf('Unhandled Rejection: %s', \json_encode($reason));
29 return $this->reason;
DRejectedPromise.php10 private $reason; variable in React\\Promise\\RejectedPromise
12 public function __construct($reason = null) argument
14 if ($reason instanceof PromiseInterface) {
18 $this->reason = $reason;
28 return resolve($onRejected($this->reason));
39 throw UnhandledRejectionException::resolve($this->reason);
42 $result = $onRejected($this->reason);
45 throw UnhandledRejectionException::resolve($result->reason);
55 if (!_checkTypehint($onRejected, $this->reason)) {
64 return $this->then(null, function ($reason) use ($onFulfilledOrRejected) {
[all …]
/plugin/webdav/vendor/sabre/event/lib/
Dcoroutine.php75 function($reason) use ($generator, $advanceGenerator) {
76 if ($reason instanceof Exception) {
77 $generator->throw($reason);
78 } elseif (is_scalar($reason)) {
79 $generator->throw(new Exception($reason));
81 $type = is_object($reason) ? get_class($reason) : gettype($reason);
86 )->error(function($reason) use ($promise) {
90 $promise->reject($reason);
DPromise.php158 * @param mixed $reason
161 function reject($reason = null) { argument
166 $this->value = $reason;
208 $reason = $this->value;
209 if ($reason instanceof Exception) {
210 throw $reason;
211 } elseif (is_scalar($reason)) {
212 throw new Exception($reason);
214 $type = is_object($reason) ? get_class($reason) : gettype($reason);
/plugin/webdav/vendor/sabre/event/lib/Promise/
Dfunctions.php51 function($reason) use ($fail) {
52 $fail($reason);
86 function($reason) use ($fail, &$alreadyDone) {
91 $fail($reason);
126 * @param mixed $reason
129 function reject($reason) { argument
132 $promise->reject($reason);
/plugin/authgooglesheets/vendor/google/apiclient-services/src/AuthorizedBuyersMarketplace/
DPauseFinalizedDealRequest.php25 public $reason; variable in Google\\Service\\AuthorizedBuyersMarketplace\\PauseFinalizedDealRequest
30 public function setReason($reason) argument
32 $this->reason = $reason;
39 return $this->reason;
/plugin/authgooglesheets/vendor/google/apiclient-services/src/Dataflow/
DWorkerShutdownNotice.php25 public $reason; variable in Google\\Service\\Dataflow\\WorkerShutdownNotice
30 public function setReason($reason) argument
32 $this->reason = $reason;
39 return $this->reason;
/plugin/authgooglesheets/vendor/google/apiclient-services/src/PaymentsResellerSubscription/
DGoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails.php25 public $reason; variable in Google\\Service\\PaymentsResellerSubscription\\GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails
30 public function setReason($reason) argument
32 $this->reason = $reason;
39 return $this->reason;
/plugin/authgooglesheets/vendor/google/apiclient-services/src/AdExchangeBuyerII/
DPauseProposalRequest.php25 public $reason; variable in Google\\Service\\AdExchangeBuyerII\\PauseProposalRequest
30 public function setReason($reason) argument
32 $this->reason = $reason;
39 return $this->reason;
/plugin/authgooglesheets/vendor/google/apiclient-services/src/ShoppingContent/
DOrdersCancelTestOrderByCustomerRequest.php25 public $reason; variable in Google\\Service\\ShoppingContent\\OrdersCancelTestOrderByCustomerRequest
30 public function setReason($reason) argument
32 $this->reason = $reason;
39 return $this->reason;
DOrderreturnsRejectOperation.php25 public $reason; variable in Google\\Service\\ShoppingContent\\OrderreturnsRejectOperation
34 public function setReason($reason) argument
36 $this->reason = $reason;
43 return $this->reason;
DOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption.php29 public $reason; variable in Google\\Service\\ShoppingContent\\OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption
48 public function setReason($reason) argument
50 $this->reason = $reason;
57 return $this->reason;
/plugin/authgooglesheets/vendor/google/apiclient-services/src/ManagedServiceforMicrosoftActiveDirectoryConsumerAPI/
DGoogleCloudSaasacceleratorManagementProvidersV1SloEligibility.php29 public $reason; variable in Google\\Service\\ManagedServiceforMicrosoftActiveDirectoryConsumerAPI\\GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility
48 public function setReason($reason) argument
50 $this->reason = $reason;
57 return $this->reason;
/plugin/authgooglesheets/vendor/google/apiclient-services/src/CloudMemorystoreforMemcached/
DGoogleCloudSaasacceleratorManagementProvidersV1SloEligibility.php29 public $reason; variable in Google\\Service\\CloudMemorystoreforMemcached\\GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility
48 public function setReason($reason) argument
50 $this->reason = $reason;
57 return $this->reason;
/plugin/authgooglesheets/vendor/google/apiclient-services/src/Calendar/
DError.php29 public $reason; variable in Google\\Service\\Calendar\\Error
48 public function setReason($reason) argument
50 $this->reason = $reason;
57 return $this->reason;
/plugin/authgooglesheets/vendor/google/apiclient-services/src/AndroidEnterprise/
DEntitlement.php29 public $reason; variable in Google\\Service\\AndroidEnterprise\\Entitlement
48 public function setReason($reason) argument
50 $this->reason = $reason;
57 return $this->reason;
/plugin/authgooglesheets/vendor/google/apiclient-services/src/CloudFilestore/
DGoogleCloudSaasacceleratorManagementProvidersV1SloEligibility.php29 public $reason; variable in Google\\Service\\CloudFilestore\\GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility
48 public function setReason($reason) argument
50 $this->reason = $reason;
57 return $this->reason;
/plugin/authgooglesheets/vendor/google/apiclient-services/src/CertificateAuthorityService/
DRevokeCertificateRequest.php25 public $reason; variable in Google\\Service\\CertificateAuthorityService\\RevokeCertificateRequest
34 public function setReason($reason) argument
36 $this->reason = $reason;
43 return $this->reason;
/plugin/authgooglesheets/vendor/google/apiclient-services/src/CloudDataplex/
DGoogleCloudDataplexV1EntityCompatibilityStatusCompatibility.php29 public $reason; variable in Google\\Service\\CloudDataplex\\GoogleCloudDataplexV1EntityCompatibilityStatusCompatibility
48 public function setReason($reason) argument
50 $this->reason = $reason;
57 return $this->reason;

12345678910>>...35