Scientist\Result::getException PHP Метод

getException() публичный Метод

Get the exception thrown by the callback.
public getException ( ) : Exceptio\Exception | null
Результат Exceptio\Exception | null
    public function getException()
    {
        return $this->exception;
    }

Usage Example

Пример #1
0
 public function test_result_can_have_exception()
 {
     $r = new Result();
     $r->setException(new Exception());
     $this->assertInstanceOf('\\Exception', $r->getException());
 }