However, the function itself is really specific to `DoesNotExistError`. Hence, a new interface would be to bind an exception to a predicate like `raises(DoesNotExistError, if_=resource_exists)`.