Sorry for so much late reply... I had not seen this thread.

You need to create your own error class to raise custom errors
e.g.


class mayjune(Exception):
def __init__(self, value):...