Skip to content

Change required for JPype 0.7.0#102

Closed
Thrameos wants to merge 4 commits intobaztian:masterfrom
Thrameos:jpype_0.7.0
Closed

Change required for JPype 0.7.0#102
Thrameos wants to merge 4 commits intobaztian:masterfrom
Thrameos:jpype_0.7.0

Conversation

@Thrameos
Copy link
Contributor

This deals with the startup. There are two additional differences.

def _handle_sql_exception_jpype():
    import jpype
    SQLException = jpype.java.sql.SQLException
    exc_info = sys.exc_info()
    if issubclass(exc_info[1].__javaclass__, SQLException):
        exc_type = DatabaseError
    else:
        exc_type = InterfaceError
    reraise(exc_type, exc_info[1], exc_info[2])

Exceptions in 0.7 now catch the exception type directly rather than as part of the arguments to the exception.

@baztian baztian force-pushed the master branch 2 times, most recently from 21d2b3e to d31d9a9 Compare July 8, 2019 19:19
@baztian
Copy link
Owner

baztian commented May 22, 2020

I think I've already merged/integrated the changes of this PR. Thanks @Thrameos !

@baztian baztian closed this May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants