Overview

Namespaces

  • Baguette
    • Mastodon
      • Config
      • Entity
      • Grant
      • Service
  • GuzzleHttp
    • Cookie
    • Exception
    • Handler
    • Promise
  • Psr
    • Http
      • Message
  • Teto
    • Object

Classes

  • Coroutine
  • EachPromise
  • FulfilledPromise
  • Promise
  • RejectedPromise
  • TaskQueue

Interfaces

  • PromiseInterface
  • PromisorInterface
  • TaskQueueInterface

Exceptions

  • AggregateException
  • CancellationException
  • RejectionException

Functions

  • all
  • any
  • coroutine
  • each
  • each_limit
  • each_limit_all
  • exception_for
  • inspect
  • inspect_all
  • is_fulfilled
  • is_rejected
  • is_settled
  • iter_for
  • promise_for
  • queue
  • rejection_for
  • settle
  • some
  • task
  • unwrap
  • Overview
  • Namespace
  • Class

Class RejectionException

A special exception that is thrown when waiting on a rejected promise.

The reason value is available via the getReason() method.

Exception implements Throwable
Extended by RuntimeException
Extended by GuzzleHttp\Promise\RejectionException

Direct known subclasses

GuzzleHttp\Promise\AggregateException, GuzzleHttp\Promise\CancellationException
Namespace: GuzzleHttp\Promise
Located at RejectionException.php
Methods summary
public
# __construct( mixed $reason, string $description = null )

Parameters

$reason
Rejection reason.
$description
Optional description

Overrides

Exception::__construct()
public mixed
# getReason( )

Returns the rejection reason.

Returns the rejection reason.

Returns

mixed
Methods inherited from Exception
__toString(), __wakeup(), getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString()
Properties inherited from Exception
$code, $file, $line, $message
ξ ^ω^)ξ Baguette PHP Mastodon API Client / SDK API documentation generated by ApiGen