Throw and catch PaymentProcessorExceptions and give user feedback
[civicrm-core.git] / CRM / Contribute / Exception / CheckLineItemsException.php
1 <?php
2
3 /**
4 * Class CRM_Contribute_Exception_CheckLineItemsException
5 */
6 class CRM_Contribute_Exception_CheckLineItemsException extends API_Exception {
7 const LINE_ITEM_DIFFERRING_TOTAL_EXCEPTON_MSG = "Line item total doesn't match with total amount.";
8
9 public function __construct($message = self::LINE_ITEM_DIFFERRING_TOTAL_EXCEPTON_MSG, $error_code = 0, array $extraParams = [], $previous = NULL) {
10 parent::__construct($message, $error_code, $extraParams, $previous);
11 }
12
13 }