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