MCPcopy Index your code
hub / github.com/elimity-com/scim / Error

Method Error

errors/error.go:183–192  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

181}
182
183func (e ScimError) Error() string {
184 errorMessage := fmt.Sprint(e.Status)
185 if e.ScimType != "" {
186 errorMessage += fmt.Sprintf(" (%s)", e.ScimType)
187 }
188 if e.Detail != "" {
189 return fmt.Sprintf("%s - %s", errorMessage, e.Detail)
190 }
191 return fmt.Sprintf("%s - No detailed human-readable message", errorMessage)
192}
193
194// MarshalJSON converts the error struct to its corresponding json representation.
195func (e ScimError) MarshalJSON() ([]byte, error) {

Callers 15

assertFalseFunction · 0.80
assertTrueFunction · 0.80
TestPatch_addAttributesFunction · 0.80
TestPatch_addMemberFunction · 0.80
TestPatch_alreadyExistsFunction · 0.80
TestPatch_complexFunction · 0.80
TestCheckErrorFunction · 0.80
TestCheckScimErrorFunction · 0.80
TestScimErrorMarshallingFunction · 0.80
CheckScimErrorFunction · 0.80
TestIdPFunction · 0.80

Calls

no outgoing calls

Tested by 15

assertFalseFunction · 0.64
assertTrueFunction · 0.64
TestPatch_addAttributesFunction · 0.64
TestPatch_addMemberFunction · 0.64
TestPatch_alreadyExistsFunction · 0.64
TestPatch_complexFunction · 0.64
TestCheckErrorFunction · 0.64
TestCheckScimErrorFunction · 0.64
TestScimErrorMarshallingFunction · 0.64
TestIdPFunction · 0.64
TestNewPathValidatorFunction · 0.64