Commit | Line | Data |
---|---|---|
4caeca04 TO |
1 | <?php |
2 | /* | |
3 | +--------------------------------------------------------------------+ | |
41498ac5 | 4 | | Copyright CiviCRM LLC. All rights reserved. | |
4caeca04 | 5 | | | |
41498ac5 TO |
6 | | This work is published under the GNU AGPLv3 license with some | |
7 | | permitted exceptions and without any warranty. For full license | | |
8 | | and copyright information, see https://civicrm.org/licensing | | |
4caeca04 | 9 | +--------------------------------------------------------------------+ |
d25dd0ee | 10 | */ |
4caeca04 TO |
11 | |
12 | namespace Civi\Core\Event; | |
13 | ||
14 | /** | |
c73e3098 | 15 | * Class UnhandledExceptionEvent |
4caeca04 TO |
16 | * @package Civi\API\Event |
17 | */ | |
c73e3098 | 18 | class UnhandledExceptionEvent extends GenericHookEvent { |
4caeca04 TO |
19 | |
20 | /** | |
21 | * @var \Exception | |
22 | */ | |
23 | public $exception; | |
24 | ||
25 | /** | |
26 | * @var mixed reserved for future use | |
27 | */ | |
28 | public $request; | |
29 | ||
7fe37828 EM |
30 | /** |
31 | * @param $e | |
32 | * @param $request | |
33 | */ | |
bed98343 | 34 | public function __construct($e, $request) { |
4caeca04 TO |
35 | $this->request = $request; |
36 | $this->exception = $e; | |
37 | } | |
96025800 | 38 | |
c73e3098 TO |
39 | /** |
40 | * @inheritDoc | |
41 | */ | |
42 | public function getHookValues() { | |
c64f69d9 | 43 | return [$this->exception, $this->request]; |
c73e3098 TO |
44 | } |
45 | ||
4caeca04 | 46 | } |