mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-21 07:35:34 +08:00
refactor ZMException
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user