Lines Matching refs:exception
27 private $exception; variable in Prophecy\\Promise\\ThrowPromise
41 public function __construct($exception) argument
43 if (is_string($exception)) {
44 if (!class_exists($exception) || !$this->isAValidThrowable($exception)) {
47 $exception
50 } elseif (!$exception instanceof \Exception && !$exception instanceof \Throwable) {
53 is_object($exception) ? get_class($exception) : gettype($exception)
57 $this->exception = $exception;
71 if (is_string($this->exception)) {
72 $classname = $this->exception;
87 throw $this->exception;
91 * @param string $exception
95 private function isAValidThrowable($exception) argument
97 return is_a($exception, 'Exception', true) || is_subclass_of($exception, 'Throwable', true);