Neos\Flow\Tests\Unit\ObjectManagement\Fixture\BasicClass::throwAnException PHP Method

throwAnException() public method

..
public throwAnException ( string $exceptionType, mixed $parameter1 = null, mixed $parameter2 = null ) : void
$exceptionType string Class name of the exception to throw
$parameter1 mixed First parameter to pass to the exception constructor
$parameter2 mixed Second parameter to pass to the exception constructor
return void
    public function throwAnException($exceptionType, $parameter1 = null, $parameter2 = null)
    {
        throw new $exceptionType($parameter1, $parameter2);
    }