Commit | Line | Data |
---|---|---|
4b57bc9f | 1 | <?php |
353ffa53 | 2 | |
4b57bc9f EM |
3 | /** |
4 | * Created by PhpStorm. | |
5 | * User: eileen | |
6 | * Date: 8/12/2014 | |
7 | * Time: 10:33 AM | |
8 | */ | |
d3e86119 | 9 | class CRM_Contribute_Exception_InactiveContributionPageException extends Exception { |
4b57bc9f | 10 | private $id; |
353ffa53 | 11 | |
1cd3ffa9 EM |
12 | /** |
13 | * @param string $message | |
14 | * @param int $id | |
15 | */ | |
4b57bc9f EM |
16 | public function __construct($message, $id) { |
17 | parent::__construct(ts($message)); | |
18 | $this->id = $id; | |
19 | CRM_Core_Error::debug_log_message('inactive contribution page access attempted - page number ' . $id); | |
20 | } | |
21 | ||
1cd3ffa9 EM |
22 | /** |
23 | * Get Contribution page ID. | |
24 | * | |
25 | * @return int | |
26 | */ | |
4b57bc9f EM |
27 | public function getID() { |
28 | return $this->id; | |
29 | } | |
96025800 | 30 | |
4b57bc9f | 31 | } |