Improved index out of range exception
This commit is contained in:
@@ -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):
|
||||
|
Reference in New Issue
Block a user