public static function create($format, $value = null)
    {
        if (0 < func_num_args()) {
            $format = vsprintf($format, array_slice(func_get_args(), 1));
        }

        return new static($format);
    }
public static function create($format, $value = null)
    {
        if (0 < func_num_args()) {
            $format = vsprintf($format, array_slice(func_get_args(), 1));
        }

        return new static($format);
    }
public static function create ( $ format , $ value = null ) { if ( 0 < func_num_args ( ) ) { $ format = vsprintf ( $ format , array_slice ( func_get_args ( ) , 1 ) ) ; } return new static ( $ format ) ; }
Creates a new exception using a format and values.

@param string $format    The format.
@param mixed  $value,... The value(s).

@return Exception The exception.
Creates a new exception using a format and values .