()
| 20 | } |
| 21 | |
| 22 | func (e *MyError) Error() string { |
| 23 | return fmt.Sprintf("ERROR %d (%s): %s", e.Code, e.State, e.Message) |
| 24 | } |
| 25 | |
| 26 | // NewDefaultError: default mysql error, must adapt errname message format |
| 27 | func NewDefaultError(errCode uint16, args ...any) *MyError { |
no outgoing calls