def read_domain(self, domain_home): """ Read the domain from the specified location. :param domain_home: the domain directory to read :raises: BundleAwareException of the specified type: if an error occurs """ _method_name = 'read_domain' try: wlst_helper.read_domain(domain_home) except PyWLSTException, pwe: ex = exception_helper.create_exception(self.__exception_type, 'WLSDPLY-19112', domain_home, pwe.getLocalizedMessage(), error=pwe) self.__logger.throwing(ex, class_name=self.__class_name, method_name=_method_name) raise ex
model_context.get_admin_password(), model_context.get_admin_url()) except PyWLSTException, wlst_ex: ex = exception_helper.create_discover_exception( 'WLSDPLY-06001', model_context.get_admin_url(), model_context.get_admin_user(), wlst_ex.getLocalizedMessage(), error=wlst_ex) __logger.throwing(ex, class_name=_class_name, method_name=_method_name) raise ex else: try: wlst_helper.read_domain(model_context.get_domain_home()) except PyWLSTException, wlst_ex: wls_version = WebLogicHelper( __logger).get_actual_weblogic_version() ex = exception_helper.create_discover_exception( 'WLSDPLY-06002', model_context.get_domain_home(), wls_version, wlst_ex.getLocalizedMessage(), error=wlst_ex) __logger.throwing(ex, class_name=_class_name, method_name=_method_name) raise ex __logger.exiting(class_name=_class_name, method_name=_method_name)