source: code/trunk/vendor/git.sr.ht/~sircmpwn/go-bare/errors.go@ 823

Last change on this file since 823 was 822, checked in by yakumo.izuru, 22 months ago

Prefer immortal.run over runit and rc.d, use vendored modules
for convenience.

Signed-off-by: Izuru Yakumo <yakumo.izuru@…>

File size: 314 bytes
Line 
1package bare
2
3import (
4 "errors"
5 "fmt"
6 "reflect"
7)
8
9var ErrInvalidStr = errors.New("String contains invalid UTF-8 sequences")
10
11type UnsupportedTypeError struct {
12 Type reflect.Type
13}
14
15func (e *UnsupportedTypeError) Error() string {
16 return fmt.Sprintf("Unsupported type for marshaling: %s\n", e.Type.String())
17}
Note: See TracBrowser for help on using the repository browser.