Skip to content

Commit

Permalink
feat(project): add error
Browse files Browse the repository at this point in the history
  • Loading branch information
shgopher committed Nov 14, 2023
1 parent ee51cef commit 679d4ea
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions 工程/错误处理/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: shgopher [email protected]
* @Date: 2022-11-17 20:40:42
* @LastEditors: shgopher [email protected]
* @LastEditTime: 2023-11-13 16:32:20
* @LastEditTime: 2023-11-14 12:57:34
* @FilePath: /GOFamily/工程/错误处理/README.md
* @Description:
*
Expand Down Expand Up @@ -560,7 +560,15 @@ fmt.Errorf("%w",err)
### 具体实现
从 github.com/pkg/errors 包中改造即可。

//todo
增加以下字段的结构体就可以满足上面的需求
```go
type withCode struct {
err error
code int
cause error
*stack
}
```

## issues
`问题一:` **请说出下列代码的执行输出***
Expand Down

0 comments on commit 679d4ea

Please sign in to comment.