Neos\Flow\Tests\Unit\ObjectManagement\Fixture\BasicClass::throwAnException PHP 메소드

throwAnException() 공개 메소드

..
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
리턴 void
    public function throwAnException($exceptionType, $parameter1 = null, $parameter2 = null)
    {
        throw new $exceptionType($parameter1, $parameter2);
    }