Codebase list golang-github-alecthomas-kong / 2476d98b-4cc3-4109-9605-49ac95194e07/upstream error.go
2476d98b-4cc3-4109-9605-49ac95194e07/upstream

Tree @2476d98b-4cc3-4109-9605-49ac95194e07/upstream (Download .tar.gz)

error.go @2476d98b-4cc3-4109-9605-49ac95194e07/upstreamraw · history · blame

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 }