Commit a1ee23a1 by yeran

commit

1 parent 0a355e08
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"description": "Phalcon", "description": "Phalcon",
"keywords": ["phwoolcon"], "keywords": ["phwoolcon"],
"type": "library", "type": "library",
"version": "1.0.8", "version": "1.0.9",
"license": "proprietary", "license": "proprietary",
"authors": [ "authors": [
{ {
......
...@@ -11,7 +11,7 @@ use Throwable; ...@@ -11,7 +11,7 @@ use Throwable;
class ApiException extends \Exception class ApiException extends \Exception
{ {
public function __construct($message = '', int $code = 0, Throwable $previous = null) public function __construct($message = '', int $code = -1, Throwable $previous = null)
{ {
if (empty($message)) { if (empty($message)) {
$errorCode = ErrorCodes::getCodeMsg($code); $errorCode = ErrorCodes::getCodeMsg($code);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!