We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0690c3d commit a65a0a3Copy full SHA for a65a0a3
src/oracledb/impl/thick/utils.pyx
@@ -412,12 +412,7 @@ cdef int _raise_from_info(dpiErrorInfo *error_info) except -1:
412
Raises an exception given a dpiErrorInfo structure that is already
413
populated with error information.
414
"""
415
- msg_bytes = error_info.message[:error_info.messageLength]
416
- context = "%s: %s" % (error_info.fnName, error_info.action)
417
- error = errors._Error(msg_bytes.decode(), context, code=error_info.code,
418
- offset=error_info.offset,
419
- isrecoverable=bool(error_info.isRecoverable),
420
- iswarning=error_info.isWarning)
+ error = _create_new_from_info(error_info)
421
exc_type = get_exception_class(error_info.code)
422
raise exc_type(error)
423
0 commit comments