Module katan_ai.katan.errors

Module containing custom errors

Classes

class CoordsBlockedError (*args, **kwargs)

Error for when the coordinates are blocked already.

Ancestors

class InvalidCoordsError (*args, **kwargs)

Generic error for when the coordinates passed are invalid for some reason.

Parent class of other errors

Ancestors

  • builtins.Exception
  • builtins.BaseException

Subclasses

class NotConnectedError (*args, **kwargs)

Error for when the player is trying to build a settlement that is not connected by road.

Ancestors

class NotEnoughResourcesError (*args, **kwargs)

Error when the player doesn't have enough resources to do this action.

Ancestors

  • builtins.Exception
  • builtins.BaseException
class RequiresSettlementError (*args, **kwargs)

Error for when trying to build a city that is not on top of an existing settlement.

Ancestors

class TooCloseToBuildingError (*args, **kwargs)

Error for when a building is to close to the one the player is trying to build.

Ancestors