[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/vendor/twig/twig/src/Error/ -> Error.php (summary)

(no description)

File Size: 257 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Error:: (10 methods):
  __construct()
  getRawMessage()
  getTemplateLine()
  setTemplateLine()
  getSourceContext()
  setSourceContext()
  guess()
  appendMessage()
  updateRepr()
  guessTemplateInfo()


Class: Error  - X-Ref

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 (when the line number is set to -1
and/or the name is set to null). As this is a costly operation, this
can be disabled by passing false for both the name and the line number
when creating a new instance of this class.

__construct(string $message, int $lineno = -1, $source = null, \Exception $previous = null)   X-Ref
Constructor.

Set the line number to -1 to enable its automatic guessing.
Set the name to null to enable its automatic guessing.

param: string             $message  The error message
param: int                $lineno   The template line where the error occurred
param: Source|string|null $source   The source context where the error occurred
param: \Exception         $previous The previous exception

getRawMessage()   X-Ref
Gets the raw message.

return: string The raw message

getTemplateLine()   X-Ref
Gets the template line where the error occurred.

return: int The template line

setTemplateLine($lineno)   X-Ref
Sets the template line where the error occurred.

param: int $lineno The template line

getSourceContext()   X-Ref
Gets the source context of the Twig template where the error occurred.

return: Source|null

setSourceContext(Source $source = null)   X-Ref
Sets the source context of the Twig template where the error occurred.


guess()   X-Ref
No description

appendMessage($rawMessage)   X-Ref
No description

updateRepr()   X-Ref
No description

guessTemplateInfo()   X-Ref
No description



Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1