Throw and catch PaymentProcessorExceptions and give user feedback
[civicrm-core.git] / CRM / Contribute / Exception / PastContributionPageException.php
CommitLineData
09fbb309 1<?php
2
3class CRM_Contribute_Exception_PastContributionPageException extends Exception {
4 private $id;
5
6 /**
7 * @param string $message
8 * @param int $id
9 */
10 public function __construct($message, $id) {
6dabf459 11 parent::__construct($message);
09fbb309 12 $this->id = $id;
13 CRM_Core_Error::debug_log_message('Access to contribution page with past end date attempted - page number ' . $id);
14 }
15
16 /**
17 * Get Contribution page ID.
18 *
19 * @return int
20 */
21 public function getID() {
22 return $this->id;
23 }
24
25}