Skip to content

Commit

Permalink
change: 更改 Exception code 码 (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
yansongda authored Jan 8, 2024
1 parent 1ced1ed commit ee50b4d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 17 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## v1.0.2

### changed

- change: 更改 `Exception` code 码(!3)

## v1.0.1

### added
Expand Down
34 changes: 17 additions & 17 deletions src/Exception/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,45 +13,45 @@ class Exception extends \Exception
/**
* 关于容器.
*/
public const CONTAINER_ERROR = 1000;
public const CONTAINER_ERROR = 9100;

public const CONTAINER_NOT_FOUND = 1001;
public const CONTAINER_NOT_FOUND = 9101;

public const CONTAINER_SERVICE_NOT_FOUND = 1002;
public const CONTAINER_SERVICE_NOT_FOUND = 9102;

/**
* 关于参数.
*/
public const PARAMS_ERROR = 2000;
public const PARAMS_ERROR = 9200;

public const PARAMS_DIRECTION_INVALID = 2001;
public const PARAMS_DIRECTION_INVALID = 9201;

public const PARAMS_PACKER_INVALID = 2002;
public const PARAMS_PACKER_INVALID = 9202;

public const PARAMS_EVENT_DRIVER_INVALID = 2003;
public const PARAMS_EVENT_DRIVER_INVALID = 9203;

public const PARAMS_HTTP_CLIENT_INVALID = 2004;
public const PARAMS_HTTP_CLIENT_INVALID = 9204;

public const PARAMS_LOGGER_DRIVER_INVALID = 2005;
public const PARAMS_LOGGER_DRIVER_INVALID = 9205;

public const PARAMS_HTTP_CLIENT_FACTORY_INVALID = 2006;
public const PARAMS_HTTP_CLIENT_FACTORY_INVALID = 9206;

public const PARAMS_PLUGIN_INCOMPATIBLE = 2007;
public const PARAMS_PLUGIN_INCOMPATIBLE = 9207;

public const PARAMS_PARSER_DIRECTION_INVALID = 2008;
public const PARAMS_PARSER_DIRECTION_INVALID = 9208;

public const PARAMS_SHORTCUT_INVALID = 2009;
public const PARAMS_SHORTCUT_INVALID = 9209;

/**
* 关于响应.
*/
public const RESPONSE_ERROR = 3000;
public const RESPONSE_ERROR = 9300;

public const REQUEST_RESPONSE_ERROR = 3001;
public const REQUEST_RESPONSE_ERROR = 9301;

public const RESPONSE_UNPACK_ERROR = 3002;
public const RESPONSE_UNPACK_ERROR = 9302;

public const RESPONSE_EMPTY = 3003;
public const RESPONSE_EMPTY = 9303;

public mixed $extra;

Expand Down

0 comments on commit ee50b4d

Please sign in to comment.