On Thu, Dec 3, 2015 at 6:54 PM, Pavel Stehule <pavel.stehule@gmail.com> wrote: > Don't understand - if Fatal has same behave as Error, then why it cannot be > inherited from Error? > > What can be broken?
Existing code that did "except plpy.Error as exc" will now also be called if plpy.Fatal is raised. That wasn't the case so this changes meaning of existing code, therefore it introduces an incompatibility.
I read some notes about Python naming convention
and we can use different names for new exception classes