raising-non-exception / E0710#

Message emitted:

Raising a new style class which doesn't inherit from BaseException

Description:

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

Correct code:

raise Exception("Goodbye world !")

Problematic code:

raise str  # [raising-non-exception]

Created by the exceptions checker.