Merge pull request #4983 from colemanw/CRM-15842
[civicrm-core.git] / CRM / Contribute / Exception / InactiveContributionPageException.php
1 <?php
2
3 /**
4 * Created by PhpStorm.
5 * User: eileen
6 * Date: 8/12/2014
7 * Time: 10:33 AM
8 */
9 class CRM_Contribute_Exception_InactiveContributionPageException extends Exception {
10 private $id;
11
12 public function __construct($message, $id) {
13 parent::__construct(ts($message));
14 $this->id = $id;
15 CRM_Core_Error::debug_log_message('inactive contribution page access attempted - page number ' . $id);
16 }
17
18 public function getID() {
19 return $this->id;
20 }
21
22 }