Storm\Core\StormException::__construct PHP Метод

__construct() публичный Метод

public __construct ( type $MessageFormat )
$MessageFormat type
    public function __construct($MessageFormat)
    {
        $Message = call_user_func_array('sprintf', array_merge([$MessageFormat], array_slice(func_get_args(), 1)));
        parent::__construct($Message, null, null);
    }

Usage Example

 public function __construct(Functional\IData $FunctionData, $Message)
 {
     $Reflection = $FunctionData->GetReflection();
     parent::__construct('Invalid function defined in %s (%d-%d): %s', $Reflection->getFileName(), $Reflection->getStartLine(), $Reflection->getEndLine(), $Message);
 }