refactor ZMException

This commit is contained in:
sunxyw
2022-11-15 21:48:46 +08:00
parent 02003b2bd3
commit 5f4a00c77e
7 changed files with 27 additions and 23 deletions

View File

@@ -4,6 +4,12 @@ declare(strict_types=1);
namespace ZM\Exception;
use Throwable;
abstract class ZMException extends \Exception
{
public function __construct(string $description, string $solution = '', int $code = 0, ?Throwable $previous = null)
{
parent::__construct($description . PHP_EOL . $solution, $code, $previous);
}
}