It's not that the input was bad, it just reflects that nothing
matching the input value was found.
Signed-off-by: John Mulligan <jmulligan@redhat.com>
return -errno.EINVAL, "", str(self)
+class NoMatchingValue(object_format.ErrorResponseBase):
+ def format_response(self) -> Tuple[int, str, str]:
+ return -errno.ENOENT, "", str(self)
+
+
@contextlib.contextmanager
def error_wrapper() -> Iterator[None]:
"""Context-decorator that converts between certain common exception types."""