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:
ExceptionException raised for non specific errors in HAC-GAME-LIB.
-
exception
gamelib.HacExceptions.HacInvalidLevelException(message)¶ Bases:
ExceptionException raised if a level is not associated to a board in Game().
-
exception
gamelib.HacExceptions.HacInvalidTypeException(message)¶ Bases:
ExceptionException raised for invalid types.
-
exception
gamelib.HacExceptions.HacInventoryException(error, message)¶ Bases:
ExceptionException 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:
ExceptionException raised if the object that is being moved is not a subclass of Movable.
-
exception
gamelib.HacExceptions.HacOutOfBoardBoundException(message)¶ Bases:
ExceptionException for out of the board’s boundaries operations.