As in Go
As finds the first error in err's chain that matches target, and if so, sets target to that error value and returns true.
As finds the first error in err's chain that matches target, and if so, sets target to that error value and returns true.