Source code for footylib.footylibExceptions

#!/usr/bin/env python
# -*- coding: utf-8 -*-


[docs]class MonthTranslationError(Exception): def __init__(self, error_msg): self.error_msg = error_msg def __str__(self): return "Cannot translate Dutch time to English " \ "for datetime object. {}".format(self.error_msg)
[docs]class ErrorGettingDivision(Exception): def __init__(self): pass def __str__(self): return "Specified division doesn't exist"
[docs]class ErrorGettingLeague(Exception): def __init__(self): pass def __str__(self): return "Specified league doesn't exist"