This makes the identity errors public so other packages can match on them. It also moves them to the same file as the interface, as that makes them more discoverable.
This makes the identity errors public so other packages can match on them. It also moves them to the same file as the interface, as that makes them more discoverable.