File: custom_error.go

package info (click to toggle)
mockery 2.15.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,252 kB
  • sloc: makefile: 35; sh: 29
file content (18 lines) | stat: -rw-r--r-- 226 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package test

type Err struct {
	msg  string
	code uint64
}

func (e *Err) Error() string {
	return e.msg
}

func (e *Err) Code() uint64 {
	return e.code
}

type KeyManager interface {
	GetKey(string, uint16) ([]byte, *Err)
}