mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-20 23:25:35 +08:00
refactor ZMException
This commit is contained in:
@@ -8,6 +8,7 @@ class InvalidArgumentException extends ZMException
|
||||
{
|
||||
public function __construct($message = '', $code = 0, \Throwable $previous = null)
|
||||
{
|
||||
parent::__construct(zm_internal_errcode('E00074') . $message, $code, $previous);
|
||||
// TODO: change this to a better error message
|
||||
parent::__construct($message, '', 74, $previous);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user