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());
 }