()
| 14 | type AppErrorType string |
| 15 | |
| 16 | func (e AppError) Error() string { |
| 17 | if e.Err != nil { |
| 18 | return fmt.Sprintf("%s: %v", e.AppErrorType, e.Err) |
| 19 | } |
| 20 | return string(e.AppErrorType) |
| 21 | } |
| 22 | |
| 23 | // AppErrorType is a type of error that can be returned by the application |
| 24 | const ( |
no outgoing calls