View definition

(errorMsgs).Errors

Defined in github.com/gin-gonic/gin/errors.go

Description

Returns an array will all the error messages. Example:

c.Error(errors.New("first"))
c.Error(errors.New("second"))
c.Error(errors.New("third"))
c.Errors.Errors() // == []string{"first", "second", "third"}

Errors is referenced in 3 repositories

github.com/gin-gonic/gin github.com/osuripple/api github.com/peter-edge/lion-go