setException() 공개 메소드

Set updated exception back to event
public setException ( Exception $exception )
$exception Exception
예제 #1
0
 public function testSetters()
 {
     $event = new ApiExceptionEvent(new Exception());
     $event->setException(new InvalidArgumentException());
     $this->assertInstanceOf(InvalidArgumentException::class, $event->getException());
 }