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,13 @@ declare(strict_types=1);
namespace ZM\Exception;
use Throwable;
class InitException extends ZMException
{
public function __construct(string $message = '', int $code = 0, ?Throwable $previous = null)
{
// TODO: change this to a better error message
parent::__construct($message, '', $code, $previous);
}
}