MCPcopy
hub / github.com/ent/ent / AddError

Method AddError

dialect/sql/builder.go:3059–3065  ·  view source on GitHub ↗

AddError appends an error to the builder errors.

(err error)

Source from the content-addressed store, hash-verified

3057
3058// AddError appends an error to the builder errors.
3059func (b *Builder) AddError(err error) *Builder {
3060 // allowed nil error make build process easier
3061 if err != nil {
3062 b.errs = append(b.errs, err)
3063 }
3064 return b
3065}
3066
3067func (b *Builder) writeSchema(schema string) {
3068 if schema != "" && b.dialect != dialect.SQLite {

Callers 15

joinMethod · 0.95
AscFunction · 0.45
DescFunction · 0.45
MaxFunction · 0.45
MeanFunction · 0.45
MinFunction · 0.45
SumFunction · 0.45
AscFunction · 0.45
DescFunction · 0.45
MaxFunction · 0.45
MeanFunction · 0.45
MinFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestBuilder_ErrFunction · 0.36