mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 10:05:28 +03:00
38 lines
1.1 KiB
Python
38 lines
1.1 KiB
Python
from ..params.flag.input_flag.entity import InputFlag
|
|
|
|
|
|
class UnprocessedInputFlagException(Exception):
|
|
def __str__(self):
|
|
return "Unprocessed Input Flags"
|
|
|
|
|
|
class RepeatedInputFlagsException(Exception):
|
|
def __init__(self, flag: InputFlag):
|
|
self.flag = flag
|
|
def __str__(self):
|
|
return ("Repeated Input Flags\n"
|
|
f"Duplicate flag was detected in the input: '{self.flag.get_string_entity()}'")
|
|
|
|
|
|
class InvalidInputFlagsHandlerHasBeenAlreadyCreatedException(Exception):
|
|
def __str__(self):
|
|
return "Invalid Input Flags Handler has already been created"
|
|
|
|
|
|
class RepeatedInputFlagsHandlerHasBeenAlreadyCreatedException(Exception):
|
|
def __str__(self):
|
|
return "Repeated Input Flags Handler has already been created"
|
|
|
|
|
|
class UnknownCommandHandlerHasBeenAlreadyCreatedException(Exception):
|
|
def __str__(self):
|
|
return "Unknown Command Handler has already been created"
|
|
|
|
|
|
class IncorrectNumberOfHandlerArgsException(Exception):
|
|
def __str__(self):
|
|
return "Incorrect Input Flags Handler has incorrect number of arguments"
|
|
|
|
|
|
|