diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2023-01-28 23:26:26 -0700 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-01-30 13:49:17 -0700 |
commit | e87c9b4d8b629f5df19e9dd182162889d279b4f2 (patch) | |
tree | 78c368370dbe7f35246aa353d934c906b36be0c1 /errors.go | |
parent | ff6dc0bc519886905e758a84e572f5e34d6c03d1 (diff) |
encode: Fix errors for marshalers/encodables with bad output
Diffstat (limited to 'errors.go')
-rw-r--r-- | errors.go | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -138,8 +138,9 @@ type EncodeTypeError = json.UnsupportedTypeError // } type EncodeValueError = json.UnsupportedValueError -// An EncodeMethodError wraps an error that is returned from an -// object's method when encoding that object to JSON. +// An EncodeMethodError either wraps an error that is returned from an +// object's method when encoding that object to JSON, or wraps a +// *ReEncodeSyntaxError for the method's output. type EncodeMethodError struct { Type reflect.Type // The Go type that the method is on SourceFunc string // The method: "EncodeJSON", "MarshalJSON", or "MarshalText" |