Storm\Core\StormException::__construct PHP Method

__construct() public method

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);
 }