- Symphony 2.2
-
› boot
9 -
› core
22 -
› email-gateways
3 -
› toolkit
67 -
› Unknown
33 - Delegates82
- Deprecated28
Versions
- 2.7.9
- 2.7.8
- 2.7.7
- 2.7.6
- 2.7.5
- 2.7.3
- 2.7.2
- 2.7.10
- 2.7.1
- 2.7.0
- 2.6.9
- 2.6.8
- 2.6.7
- 2.6.6
- 2.6.5
- 2.6.4
- 2.6.3
- 2.6.2
- 2.6.11
- 2.6.10
- 2.6.1
- 2.6.0
- 2.5.3
- 2.5.2
- 2.5.1
- 2.5.0
- 2.4
- 2.3.6
- 2.3.5
- 2.3.4
- 2.3.3
- 2.3.2
- 2.3.1
- 2.3
- 2.2.5
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2
Options
public class GenericErrorHandler
class.errorhandler.php #320GenericErrorHandler
will catch any warnings or notices thrown by PHP and
raise the errors to Exceptions so they can be dealt with by the
GenericExceptionHandler
. If the error raised is not a E_NOTICE
or E_STRICT
,
it will be written to the Symphony log. Symphony will raise Exceptions for errors
thrown based on the error_reporting level set in PHP
Properties
static boolean $enabled
Whether the error handler is enabled or not, defaults to true. Setting to false will prevent any Symphony error handling from occurring
static array $errorTypeStrings
An associative array with the PHP error constant as a key, and a string describing that constant as the value
static boolean $raise
Whether to raise all Warnings to Exceptions or not.
Methods
static string handler()
The handler function will write the error to the $Log
if it is not E_NOTICE
or E_STRICT
before raising the error as an Exception. This allows all E_WARNING
to actually be captured by an Exception handler.
Parameters
Returns
Usually a string of HTML that will displayed to a user
static void initialise()
Initialise will set the error handler to be the __CLASS__
handler
function and will set this $_Log
variable to a Log instance
Parameters
static boolean isEnabled()
Determines if the error handler is enabled by checking that error_reporting is set in the php config and that $enabled is true