some changes in readme

This commit is contained in:
2025-04-01 23:49:17 +03:00
parent cc8135b733
commit 54992e55cb
6 changed files with 35 additions and 24 deletions
+8 -4
View File
@@ -1,12 +1,16 @@
from argenta.command.flag.models import InputFlag, Flag
class UnprocessedInputFlagException(Exception):
class BaseInputCommandException(Exception):
pass
class UnprocessedInputFlagException(BaseInputCommandException):
def __str__(self):
return "Unprocessed Input Flags"
class RepeatedInputFlagsException(Exception):
class RepeatedInputFlagsException(BaseInputCommandException):
def __init__(self, flag: Flag | InputFlag):
self.flag = flag
def __str__(self):
@@ -14,6 +18,6 @@ class RepeatedInputFlagsException(Exception):
f"Duplicate flag was detected in the input: '{self.flag.get_string_entity()}'")
class EmptyInputCommandException(Exception):
class EmptyInputCommandException(BaseInputCommandException):
def __str__(self):
return "Input Command is empty"
return "Input Command is empty"