MCPcopy Create free account
hub / github.com/apache/fory / TakeError

Method TakeError

go/fory/errors.go:348–355  ·  view source on GitHub ↗

TakeError returns the error and clears it

()

Source from the content-addressed store, hash-verified

346
347// TakeError returns the error and clears it
348func (e *Error) TakeError() error {
349 if e == nil || e.kind == ErrKindOK {
350 return nil
351 }
352 result := *e
353 *e = Error{kind: ErrKindOK}
354 return result
355}
356
357// CheckError returns the error if one occurred, nil otherwise
358func (e *Error) CheckError() error {

Callers 15

decodeTypeDefFunction · 0.95
readFieldDefFunction · 0.95
DeserializeFromStreamMethod · 0.45
DeserializeFromReaderMethod · 0.45
SerializeMethod · 0.45
DeserializeMethod · 0.45
SerializeToMethod · 0.45
DeserializeFromMethod · 0.45
SerializeWithCallbackMethod · 0.45
serializeReflectValueMethod · 0.45
DeserializeFunction · 0.45

Calls

no outgoing calls