ipld-eth-server/vendor/github.com/polydawn/refmt/obj/atlas/errors.go

15 lines
446 B
Go

package atlas
// Error type raised when initializing an Atlas, and field entries do
// not resolve against the type.
// (If you recently refactored names of fields in your types, check
// to make sure you updated any references to those fields by name to match!)
type ErrStructureMismatch struct {
TypeName string
Reason string
}
func (e ErrStructureMismatch) Error() string {
return "structure mismatch: " + e.TypeName + " " + e.Reason
}