github.com/alecthomas/kong@v0.9.1-0.20240410131203-2ab5733f1179/error.go (about) 1 package kong 2 3 // ParseError is the error type returned by Kong.Parse(). 4 // 5 // It contains the parse Context that triggered the error. 6 type ParseError struct { 7 error 8 Context *Context 9 } 10 11 // Unwrap returns the original cause of the error. 12 func (p *ParseError) Unwrap() error { return p.error }