MCPcopy Create free account
hub / github.com/Merovius/nbd / String

Method String

types.go:175–198  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

173)
174
175func (e errno) String() string {
176 switch e {
177 case errUnsup:
178 return "ERR_UNSUP"
179 case errPolicy:
180 return "ERR_POLICY"
181 case errInvalid:
182 return "ERR_INVALID"
183 case errPlatform:
184 return "ERR_PLATFORM"
185 case errTLSReqd:
186 return "ERR_TLS_REQD"
187 case errUnknown:
188 return "ERR_UNKNOWN"
189 case errShutdown:
190 return "ERR_SHUTDOWN"
191 case errBlockSizeReqd:
192 return "ERR_BLOCK_SIZE_REQD"
193 case errTooBig:
194 return "ERR_TOO_BIG"
195 default:
196 return "0x" + strconv.FormatUint(uint64(e), 16)
197 }
198}
199
200type optionReply interface {
201 code() uint32

Callers 1

ErrorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected