MCPcopy
hub / github.com/opencloud-eu/opencloud / Error

Method Error

services/graph/pkg/errorcode/errorcode.go:165–171  ·  view source on GitHub ↗

Error returns the concatenation of the error string and optional message

()

Source from the content-addressed store, hash-verified

163
164// Error returns the concatenation of the error string and optional message
165func (e Error) Error() string {
166 errString := errorCodes[e.errorCode]
167 if e.msg != "" {
168 errString += ": " + e.msg
169 }
170 return errString
171}
172
173func (e Error) GetCode() ErrorCode {
174 return e.errorCode

Callers 15

CreateEducationUserMethod · 0.95
CreateEducationClassMethod · 0.95
updateClassExternalIDMethod · 0.95
updateUserPasswordMethod · 0.95
ServerFunction · 0.45
executeMethod · 0.45
executeMethod · 0.45
handleSpaceSharedMethod · 0.45
prepareSpaceSharedMethod · 0.45
handleSpaceUnsharedMethod · 0.45
prepareSpaceUnsharedMethod · 0.45

Calls

no outgoing calls

Tested by 15

Test_appendSenderFunction · 0.36
TestLoadCSPConfigFunction · 0.36
TestInitWithEmptyArrayFunction · 0.36
TestInitWithNilFunction · 0.36
TestInitFunction · 0.36
TestParseWithEmptyStringFunction · 0.36
TestNewServiceFunction · 0.36