def __init__(self, card, exception=None):
assert card is not None<EOL>assert isinstance(card, dict)<EOL>assert '<STR_LIT:id>' in card<EOL>self.card = card<EOL>self._message = '<STR_LIT>'<EOL>self._exception = exception<EOL>
Prepare an IndexAPIError

        :param: dict: card
          card concerned by the exception about to be raised