NotSupportedError constructor now requires additional arguments for inherited DBAPIError constructor

Issue #1251 resolved
Former user created an issue

NotSupportedError inherits from DatabaseError which inherits from DBAPIError which now has a constructor with at least four arguments. So all invocations of NotSupportedError with just a message parameter will fail.

Comments (2)

  1. Mike Bayer repo owner

    Are we talking about NotSupportedError as defined in sqlalchemy.exc? or within a particular DBAPI implementation ? The NotSupportedError in sqlalchemy.exc is created through a specific codepath, that of when a corresponding NotSupportedError is caught from a DBAPI. It works the same as all the other DBAPI errors so I don't know what usage you are attempting.

  2. Log in to comment