error.go 291 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
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 }