Changeset View
Changeset View
Standalone View
Standalone View
swh/graphql/errors/errors.py
Show All 23 Lines | |||||
class InvalidInputError(Exception): | class InvalidInputError(Exception): | ||||
""" """ | """ """ | ||||
msg: str = "Input error" | msg: str = "Input error" | ||||
def __init__(self, message, errors=None): | def __init__(self, message, errors=None): | ||||
super().__init__(f"{self.msg}: {message}") | super().__init__(f"{self.msg}: {message}") | ||||
class NullableObjectError(Exception): | |||||
pass |