22 lines
586 B
Python
22 lines
586 B
Python
from click import ClickException
|
|
|
|
|
|
class InvalidArgumentError(ClickException):
|
|
'''Exception raised when an invalid argument is given to a CLI command.'''
|
|
|
|
def __init__(self, message):
|
|
super().__init__(message)
|
|
|
|
|
|
class RuleValidationError(ClickException):
|
|
'''Exception raised when a rule did not pass validation.'''
|
|
|
|
def __init__(self, message):
|
|
super().__init__(message)
|
|
|
|
class RuleNotFoundError(ClickException):
|
|
'''Exception raised when a rule does not exist in the repository.'''
|
|
|
|
def __init__(self, message):
|
|
super().__init__(message)
|