src/ExceptionConstructorTools.php
protected static function create(
        $message,
        array $params = [],
        $code = 0,
        \Exception $previous = null
    ) {
        return new static(sprintf($message, ...$params), $code, $previous);
    }
protected static function create(
        $message,
        array $params = [],
        $code = 0,
        \Exception $previous = null
    ) {
        return new static(sprintf($message, ...$params), $code, $previous);
    }
protected static function create ( $ message , array $ params = [ ] , $ code = 0 , \ Exception $ previous = null ) { return new static ( sprintf ( $ message , ... $ params ) , $ code , $ previous ) ; }
Create an instance of the exception with a formatted message.

@param string     $message  The exception message in sprintf format.
@param array      $params   The sprintf parameters for the message.
@param int        $code     Numeric exception code.
@param \Exception $previous The previous exception.

@return static
Create an instance of the exception with a formatted message .