ShareDAV/vendor/github.com/alecthomas/kong/error.go

13 lines
291 B
Go
Raw Normal View History

package kong
// ParseError is the error type returned by Kong.Parse().
//
// It contains the parse Context that triggered the error.
type ParseError struct {
error
Context *Context
}
// Cause returns the original cause of the error.
func (p *ParseError) Cause() error { return p.error }