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

Method SetError

go/fory/reader.go:131–135  ·  view source on GitHub ↗

SetError sets the error state if no error has occurred yet (first error wins)

(e Error)

Source from the content-addressed store, hash-verified

129
130// SetError sets the error state if no error has occurred yet (first error wins)
131func (c *ReadContext) SetError(e Error) {
132 if c.err.Ok() {
133 c.err = e
134 }
135}
136
137// TakeError returns the current error and resets the error state
138func (c *ReadContext) TakeError() Error {

Callers 15

readExpectedTypeIDMethod · 0.95
ReadAndValidateTypeIdMethod · 0.95
ReadBoolSliceMethod · 0.95
ReadInt8SliceMethod · 0.95
ReadInt16SliceMethod · 0.95
ReadInt32SliceMethod · 0.95
ReadInt64SliceMethod · 0.95
ReadUint16SliceMethod · 0.95
ReadUint32SliceMethod · 0.95
ReadUint64SliceMethod · 0.95
ReadIntSliceMethod · 0.95
ReadUintSliceMethod · 0.95

Calls 1

OkMethod · 0.80

Tested by

no test coverage detected