getServiceException() public méthode

Return the service exception object.
public getServiceException ( ) : Exception
Résultat Exception
 public function testHasServiceException()
 {
     $previous = new \Exception('test');
     $ex = new ServiceException('foo', 123, $previous);
     $this->assertTrue($ex->hasServiceException());
     $this->assertEquals($previous, $ex->getServiceException());
 }