pylint-errors

E0710 (raising-non-exception)

:x: Problematic code:

class FooError:
    pass


raise FooError

:heavy_check_mark: Correct code:

class FooError(Exception):
    pass

raise FooError

Rationale:

Used when a new style class which doesn’t inherit from BaseException is raised.