Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ThrowPromise.php

function ThrowPromise::isAValidThrowable

Parameters

string $exception:

Return value

bool

1 call to ThrowPromise::isAValidThrowable()
ThrowPromise::__construct in vendor/phpspec/prophecy/src/Prophecy/Promise/ThrowPromise.php
Initializes promise.

File

vendor/phpspec/prophecy/src/Prophecy/Promise/ThrowPromise.php, line 88

Class

ThrowPromise
Throws predefined exception.

Namespace

Prophecy\Promise

Code

private function isAValidThrowable($exception) {
    return is_a($exception, 'Exception', true) || is_a($exception, 'Throwable', true);
}
RSS feed
Powered by Drupal