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

Method TakeError

go/fory/reader.go:138–142  ·  view source on GitHub ↗

TakeError returns the current error and resets the error state

()

Source from the content-addressed store, hash-verified

136
137// TakeError returns the current error and resets the error state
138func (c *ReadContext) TakeError() Error {
139 e := c.err
140 c.err = Error{}
141 return e
142}
143
144// CheckError checks if an error has occurred and returns it as a standard error
145// This is used at strategic points for deferred error checking

Callers 1

CheckErrorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected