You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
381 B
Go

package wire
import (
"fmt"
)
type Error struct {
val error
}
4 years ago
func (e Error) Error() string { return e.val.Error() }
func (e Error) NetTag() string { return "error" }
func (e Error) Unwrap() error { return e.val }
func Errorf(t string, args ...interface{}) Error {
return Error{val: fmt.Errorf(t, args...)}
}
4 years ago
func init() {
Register(func() Value { return new(Error) })
}