|
5 | 5 | import exceptions
|
6 | 6 | import os
|
7 | 7 | import re
|
| 8 | +import sys |
8 | 9 |
|
9 | 10 | from java.io import File
|
10 | 11 | from java.lang import Class as JClass
|
|
69 | 70 | from wlsdeploy.tool.util.wlst_helper import WlstHelper
|
70 | 71 | from wlsdeploy.util import dictionary_utils
|
71 | 72 | from wlsdeploy.util import string_utils
|
| 73 | +from wlsdeploy.util import unicode_helper as str_helper |
72 | 74 | from wlsdeploy.util.model_context import ModelContext
|
73 | 75 |
|
74 | 76 | POST_CREATE_RCU_SCHEMA_LOG_BASENAME = 'postCreateRcuSchemasScript'
|
@@ -283,7 +285,14 @@ def __precheck_rcu_connectivity(self):
|
283 | 285 | JClass.forName(jdbc_driver_name)
|
284 | 286 | DriverManager.getConnection(jdbc_conn_string, props)
|
285 | 287 |
|
286 |
| - except (exceptions.Exception, JException), e: |
| 288 | + except exceptions.Exception, e: |
| 289 | + exc_type, exc_obj, _exc_tb = sys.exc_info() |
| 290 | + ex = exception_helper.create_create_exception('WLSDPLY-12281', domain_typename, |
| 291 | + str_helper.to_string(exc_type), |
| 292 | + str_helper.to_string(exc_obj), error=e) |
| 293 | + self.__logger.throwing(ex, class_name=self.__class_name, method_name=_method_name) |
| 294 | + raise ex |
| 295 | + except JException, e: |
287 | 296 | ex = exception_helper.create_create_exception('WLSDPLY-12281', domain_typename,
|
288 | 297 | e.getClass().getName(), e.getLocalizedMessage(), error=e)
|
289 | 298 | self.__logger.throwing(ex, class_name=self.__class_name, method_name=_method_name)
|
|
0 commit comments