Provide a Cause() method
morningvera opened this issue · 0 comments
morningvera commented
Sometimes errors can have multiple types which makes the root cause slightly ambiguous. The Is() method doesn't really solve this because it'll return true for any error type that appears in the chain. Would be nice to have a method that returns the cause of the error. Is it just the first error in the chain?