Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 10b68e7

Browse files
CJayHegitee-org
authored andcommitted
update phpzlc/error.markdown.
Signed-off-by: Jay_he <1044295598@qq.com>
1 parent ddaa053 commit 10b68e7

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

‎phpzlc/error.markdown

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ use PHPZlc\PHPZlc\Abnormal\Errors;
1717

1818
## 设置追加错误
1919

20-
```php
21-
Errors::setError(new Error('错误信息'));
22-
Errors::setErrorMessage('错误信息');
23-
```
20+
```
21+
Errors::setError(new Error('错误信息'));
22+
Errors::setErrorMessage('错误信息');
23+
```
2424

2525
## 设置异常错误
2626

27-
```php
28-
Errors::exceptionError(new \Exception('错误信息'));
29-
```
27+
```php
28+
Errors::exceptionError(new \Exception('错误信息'));
29+
```
3030

3131
_如果在开发模式中,则会直接抛出错误,程序中止。_
3232

@@ -79,9 +79,9 @@ use PHPZlc\PHPZlc\Abnormal\Errors;
7979

8080
## 判断是否存在错误
8181

82-
```php
82+
8383
Errors::isExistError(); // return bool
84-
```
84+
8585

8686
## 覆盖错误信息(在错误集合前追加错误信息)
8787

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /