Retrieve message for jpype SQLExceptions

master
baztian 2014-02-13 00:02:35 +01:00
parent be582b41f8
commit 98b4d55cbc
1 changed files with 2 additions and 2 deletions

View File

@ -107,8 +107,8 @@ def _handle_sql_exception_jpype(ex):
import jpype
SQLException = jpype.java.sql.SQLException
if issubclass(ex.__javaclass__, SQLException):
# TODO get message and stacktrace
raise Error
# TODO get stacktrace
raise Error, ex.message()
else:
raise ex