src/Exceptions/PostedTransaction.php
<?php
/**
* Eloquent IFRS Accounting
*
* @author Edward Mungai
* @copyright Edward Mungai, 2020, Germany
* @license MIT
*/
namespace IFRS\Exceptions;
class PostedTransaction extends IFRSException
{
/**
* Posted Transaction Exception
*
* @param string $action
* @param string $message
* @param int $code
*/
public function __construct(string $action, string $message = null, int $code = null)
{
$error = "Cannot " . $action . " a posted Transaction ";
parent::__construct($error . $message, $code);
}
}