mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 10:05:28 +03:00
39 lines
1.0 KiB
Python
39 lines
1.0 KiB
Python
from .params.flag.entity import Flag
|
|
|
|
|
|
class InvalidCommandInstanceException(Exception):
|
|
def __str__(self):
|
|
return "Invalid Command Instance"
|
|
|
|
|
|
class InvalidDescriptionInstanceException(Exception):
|
|
def __str__(self):
|
|
return "Invalid Description Instance"
|
|
|
|
|
|
class InvalidFlagsInstanceException(Exception):
|
|
def __str__(self):
|
|
return "Invalid Flags Instance"
|
|
|
|
|
|
class UnprocessedInputFlagException(Exception):
|
|
def __str__(self):
|
|
return "Unprocessed Input Flags"
|
|
|
|
|
|
class RepeatedInputFlagsException(Exception):
|
|
def __init__(self, flag: Flag):
|
|
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 IncorrectNumberOfHandlerArgsException(Exception):
|
|
def __str__(self):
|
|
return "Incorrect Input Flags Handler has incorrect number of arguments"
|
|
|
|
|
|
class EmptyInputCommandException(Exception):
|
|
def __str__(self):
|
|
return "Input Command is empty" |