MCPcopy
hub / github.com/qor/qor / Error

Method Error

errors.go:13–19  ·  view source on GitHub ↗

Error get formatted error message

()

Source from the content-addressed store, hash-verified

11
12// Error get formatted error message
13func (errs Errors) Error() string {
14 var errors []string
15 for _, err := range errs.errors {
16 errors = append(errors, err.Error())
17 }
18 return strings.Join(errors, "; ")
19}
20
21// AddError add error to Errors struct
22func (errs *Errors) AddError(errors ...error) {

Callers 15

TestPatchURLFunction · 0.80
TestJoinURLFunction · 0.80
TestMany2ManyRelationFunction · 0.80
TestValuerFunction · 0.80
TestValuer_WithVersionFunction · 0.80
TestHandleBelongsToFunction · 0.80
TestBelongsToRelationFunction · 0.80

Calls

no outgoing calls

Tested by 15

TestPatchURLFunction · 0.64
TestJoinURLFunction · 0.64
TestMany2ManyRelationFunction · 0.64
TestValuerFunction · 0.64
TestValuer_WithVersionFunction · 0.64
TestHandleBelongsToFunction · 0.64
TestBelongsToRelationFunction · 0.64