PhpParser\ErrorHandler\Throwing::handleError PHP Method

handleError() public method

public handleError ( Error $error )
$error PhpParser\Error
    public function handleError(Error $error)
    {
        throw $error;
    }

Usage Example

Example #1
0
 /**
  * @expectedException \PhpParser\Error
  * @expectedExceptionMessage Test
  */
 public function testHandleError()
 {
     $errorHandler = new Throwing();
     $errorHandler->handleError(new Error('Test'));
 }
Throwing