go-peer/pkg/encoding/errors.go
2024-04-06 09:15:59 +07:00

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"}
)