implement TwingleShop integration
This commit is contained in:
parent
ea46e6a747
commit
8cfa270dff
60 changed files with 5200 additions and 106 deletions
|
@ -1,21 +1,4 @@
|
|||
<?php
|
||||
/*
|
||||
* Copyright (C) 2024 SYSTOPIA GmbH
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published by
|
||||
* the Free Software Foundation in version 3.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
declare(strict_types = 1);
|
||||
|
||||
namespace Civi\Twingle\Exceptions;
|
||||
|
||||
|
@ -28,7 +11,7 @@ use CRM_Twingle_ExtensionUtil as E;
|
|||
class BaseException extends \Exception {
|
||||
|
||||
/**
|
||||
* @var string
|
||||
* @var int|string
|
||||
*/
|
||||
protected $code;
|
||||
protected string $log_message;
|
||||
|
@ -36,15 +19,13 @@ class BaseException extends \Exception {
|
|||
/**
|
||||
* BaseException Constructor
|
||||
* @param string $message
|
||||
* Error message
|
||||
* Error message
|
||||
* @param string $error_code
|
||||
* A meaningful error code
|
||||
* @param \Throwable $previous
|
||||
* A previously thrown exception to include.
|
||||
* A meaningful error code
|
||||
*/
|
||||
public function __construct(string $message = '', string $error_code = '', \Throwable $previous = NULL) {
|
||||
parent::__construct($message, 1, $previous);
|
||||
$this->log_message = '' !== $message ? E::LONG_NAME . ': ' . $message : '';
|
||||
public function __construct(string $message = '', string $error_code = '') {
|
||||
parent::__construct($message, 1);
|
||||
$this->log_message = !empty($message) ? E::LONG_NAME . ': ' . $message : '';
|
||||
$this->code = $error_code;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue