Documentation

ThrowPromise
in package
implements PromiseInterface

Throw promise.

Tags
author

Konstantin Kudryashov ever.zet@gmail.com

Interfaces, Classes and Traits

PromiseInterface
Promise interface.

Table of Contents

$exception  : mixed
$instantiator  : Instantiator
__construct()  : mixed
Initializes promise.
execute()  : mixed
Throws predefined exception.
isAValidThrowable()  : bool

Properties

Methods

__construct()

Initializes promise.

public __construct(string|Exception|Throwable $exception) : mixed
Parameters
$exception : string|Exception|Throwable

Exception class name or instance

Tags
throws
InvalidArgumentException
Return values
mixed

isAValidThrowable()

private isAValidThrowable(string $exception) : bool
Parameters
$exception : string
Return values
bool

Search results