Improved index out of range exception

This commit is contained in:
2021-07-27 11:40:24 +02:00
parent a3a0a150a8
commit 82a9e3a23a
3 changed files with 12 additions and 3 deletions

View File

@@ -14,7 +14,13 @@ class ExceptionArgument(Enum):
class ArgumentNoneException(Exception):
def __init__(self, arg: ExceptionArgument):
Exception.__init__(self, f'Argument {arg} is None')
Exception.__init__(self, f'argument {arg} is None')
class IndexOutOfRangeException(Exception):
def __init__(self):
Exception.__init__(self, f'List index out of range')
class InvalidTypeException(Exception):