MCPcopy Index your code
hub / github.com/koding/kite / checkError

Function checkError

dnode/partial.go:117–121  ·  view source on GitHub ↗

---------------------------------------------------------------- Helper methods for unmarshaling JSON types that panic on errors ----------------------------------------------------------------

(err error)

Source from the content-addressed store, hash-verified

115//----------------------------------------------------------------
116
117func checkError(err error) {
118 if err != nil {
119 panic(&ArgumentError{err.Error()})
120 }
121}
122
123func (p *Partial) MustSlice() []*Partial {
124 a, err := p.Slice()

Callers 8

MustUnmarshalMethod · 0.85
MustSliceMethod · 0.85
MustSliceOfLengthMethod · 0.85
MustMapMethod · 0.85
MustStringMethod · 0.85
MustFloat64Method · 0.85
MustBoolMethod · 0.85
MustFunctionMethod · 0.85

Calls 1

ErrorMethod · 0.65

Tested by

no test coverage detected