|
Protected Attributes inherited from CatchHandler |
| | $errLogger = null |
| |
|
| $errReportLvl = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED |
| |
|
| $errRemoteAddr |
| |
|
| $errRequestUri |
| |
|
| $errServerName |
| |
|
| $errPhpSelf |
| |
|
| $errScriptName |
| |
|
| $errQueryString |
| |
Definition at line 218 of file hcuLogError.i.
◆ catchException()
| CatchExceptionHandler::catchException |
( |
|
$pException | ) |
|
Exception was triggered Include an error handling script that will be presented to the user
Definition at line 235 of file hcuLogError.i.
246 include_once(dirname(__FILE__) .
'/../../shared/includes/hcuBadRequest.i');
logException($pException)
◆ getErrMsg()
| CatchExceptionHandler::getErrMsg |
( |
| ) |
|
|
protected |
Build the error message from the exception information Specific to the exception object
- Parameters
-
| int | $pType | - (0-Format error for Log File, 1-Format error for e-mail) |
- Returns
- string Returns formatted error string
For dev mode add extra informaition to the log file
Definition at line 276 of file hcuLogError.i.
278 $lCurDate = date(
"Ymd:His");
280 $lRetStr = <<< LOGMSG
281 [{$lCurDate}] {$this->errException->getCode()} [{$this->errRemoteAddr}] [{$this->errServerName}{$this->errPhpSelf}?{$this->errQueryString}] [{$this->errException->getFile()}] [Line {$this->errException->getLine()}] [{$this->errException->getCode()}] {$this->errException->getMessage()}
284 if ($this->getDevMode()) {
289 $lRetStr .= $this->errException->getTraceAsString();
◆ logException()
| CatchExceptionHandler::logException |
( |
|
$pException | ) |
|
This will log the exception information to the specified error log
- Parameters
-
| object | $pException | This is the exception object that was thrown |
Definition at line 256 of file hcuLogError.i.
258 $this->errException = $pException;
260 $this->setSaveLog($this->getSaveLog());
262 parent::handleError();
The documentation for this class was generated from the following file: