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.

18 lines
315 B
Go

package wire
import (
"fmt"
)
type Error struct {
val error
}
func (e Error) Error() string { return e.val.Error() }
func (e Error) NetTag() Tag { return T_Error }
func (e Error) Unwrap() error { return e.val }
func Errorf(t string, args ...interface{}) Error {
return Error{val: fmt.Errorf(t, args...)}
}