public static function create($template, array $availableTemplates, $code = 0, \Exception $prev = null)
    {
        return new static(sprintf(
            'Not found template with name "%s". Available templates: "%s"',
            $template,
            implode('", "', $availableTemplates)
        ), $code, $prev);
    }
public static function create($template, array $availableTemplates, $code = 0, \Exception $prev = null)
    {
        return new static(sprintf(
            'Not found template with name "%s". Available templates: "%s"',
            $template,
            implode('", "', $availableTemplates)
        ), $code, $prev);
    }
public static function create ( $ template , array $ availableTemplates , $ code = 0 , \ Exception $ prev = null ) { return new static ( sprintf ( 'Not found template with name "%s". Available templates: "%s"' , $ template , implode ( '", "' , $ availableTemplates ) ) , $ code , $ prev ) ; }
Create a new exception via template name

@param string     $template
@param array      $availableTemplates
@param int        $code
@param \Exception $prev

@return TemplateNotFoundException
Create a new exception via template name