HacExceptions¶
This module regroup all the specific exceptions of the library. The idea behind most exceptions is to provide more context and info that the standard exceptions.
-
exception
gamelib.HacExceptions.
HacException
(error, message)¶ Bases:
Exception
Exception raised for non specific errors in HAC-GAME-LIB.
-
exception
gamelib.HacExceptions.
HacInvalidLevelException
(message)¶ Bases:
Exception
Exception raised if a level is not associated to a board in Game().
-
exception
gamelib.HacExceptions.
HacInvalidTypeException
(message)¶ Bases:
Exception
Exception raised for invalid types.
-
exception
gamelib.HacExceptions.
HacInventoryException
(error, message)¶ Bases:
Exception
Exception raised for issue related to the inventory. The error is an explicit string, and the message explains the error.
-
exception
gamelib.HacExceptions.
HacObjectIsNotMovableException
(message)¶ Bases:
Exception
Exception raised if the object that is being moved is not a subclass of Movable.
-
exception
gamelib.HacExceptions.
HacOutOfBoardBoundException
(message)¶ Bases:
Exception
Exception for out of the board’s boundaries operations.