mirror of
https://github.com/number571/go-peer.git
synced 2026-09-13 18:45:44 +05:00
18 lines
242 B
Go
18 lines
242 B
Go
package encoding
|
|
|
|
const (
|
|
errPrefix = "pkg/encoding = "
|
|
)
|
|
|
|
type SEncodingError struct {
|
|
str string
|
|
}
|
|
|
|
func (err *SEncodingError) Error() string {
|
|
return errPrefix + err.str
|
|
}
|
|
|
|
var (
|
|
ErrDeserialize = &SEncodingError{"deserialize bytes"}
|
|
)
|