public function Job::recordException in Apigee Edge 8
Adds an exception to the exception storage.
Parameters
\Exception $exception: The exception.
File
- src/
Job/ Job.php, line 197
Class
- Job
- Defines the Job class.
Namespace
Drupal\apigee_edge\JobCode
public function recordException(\Exception $exception) {
$this->exceptions[] = [
'code' => $exception
->getCode(),
'message' => $exception
->getMessage(),
'file' => $exception
->getFile(),
'line' => $exception
->getLine(),
'trace' => $exception
->getTraceAsString(),
];
}