Is implements future error.Is functionality. A Error is equivalent if the code and message are identical.
(target error)
| 220 | // Is implements future error.Is functionality. |
| 221 | // A Error is equivalent if the code and message are identical. |
| 222 | func (e *Error) Is(target error) bool { |
| 223 | tse, ok := target.(*Error) |
| 224 | if !ok { |
| 225 | return false |
| 226 | } |
| 227 | return proto.Equal(e.s.s, tse.s.s) |
| 228 | } |
| 229 | |
| 230 | // IsRestrictedControlPlaneCode returns whether the status includes a code |
| 231 | // restricted for control plane usage as defined by gRFC A54. |