class FooError: pass raise FooError
class FooError(Exception): pass raise FooError
Used when a new style class which doesn’t inherit from BaseException is raised.
BaseException