# Experiment with exceptions changing what is commented out
# in the try block

class SpecialException(Exception):
    pass


class ExtremeException(SpecialException):
    pass


if __name__ == '__main__':
    try:
        #1/0
        #raise SpecialException('I am a SpecialException')
        #raise Exception('I am an Exception')
        raise ExtremeException('I am an ExtremeException')
        1/0
        
    # block to run if SpecialException was raised
    # use the name se if one is detected
    except SpecialException as se:
        print(se)
        print('caught as SpecialException')
    except ExtremeException as ee:
        print(ee)
        print('caught as ExtremeException')
    except Exception as e:
        print(e)
        print('caught as Exception')

