Jobbuddy
Chargement...
Recherche...
Aucune correspondance
Référence de la classe Error
Graphe d'héritage de Error:
LoaderError RuntimeError SyntaxError SecurityError SecurityNotAllowedFilterError SecurityNotAllowedFunctionError SecurityNotAllowedMethodError SecurityNotAllowedPropertyError SecurityNotAllowedTagError

Fonctions membres publiques

 __construct (string $message, int $lineno=-1, ?Source $source=null, ?\Throwable $previous=null)
 getRawMessage ()
 getTemplateLine ()
 setTemplateLine (int $lineno)
 getSourceContext ()
 setSourceContext (?Source $source=null)
 guess ()
 appendMessage ($rawMessage)

Description détaillée

Twig base exception.

This exception class and its children must only be used when an error occurs during the loading of a template, when a syntax error is detected in a template, or when rendering a template. Other errors must use regular PHP exception classes (like when the template cache directory is not writable for instance).

To help debugging template issues, this class tracks the original template name and line where the error occurred.

Whenever possible, you must set these information (original template name and line number) yourself by passing them to the constructor. If some or all these information are not available from where you throw the exception, then this class will guess them automatically.

Auteur
Fabien Potencier fabie.nosp@m.n@sy.nosp@m.mfony.nosp@m..com

Documentation des constructeurs et destructeur

◆ __construct()

__construct ( string $message,
int $lineno = -1,
?Source $source = null,
?\Throwable $previous = null )

Constructor.

By default, automatic guessing is enabled.

Paramètres
string$messageThe error message
int$linenoThe template line where the error occurred
Source | null$sourceThe source context where the error occurred

La documentation de cette classe a été générée à partir du fichier suivant :