/** * INTERNAL: * Return if any runtime errors occurred. */ public boolean hasRuntimeExceptions() { if (hasErrors()) { for (Enumeration exceptionsEnum = getCaughtExceptions().elements(); exceptionsEnum.hasMoreElements();) { if (exceptionsEnum.nextElement() instanceof RuntimeException) { return true; } } } return false; }
/** * INTERNAL: * Return if any runtime errors occurred. */ public boolean hasRuntimeExceptions() { if (hasErrors()) { for (Enumeration exceptionsEnum = getCaughtExceptions().elements(); exceptionsEnum.hasMoreElements();) { if (exceptionsEnum.nextElement() instanceof RuntimeException) { return true; } } } return false; }
/** * INTERNAL: * Return if any runtime errors occurred. */ public boolean hasRuntimeExceptions() { if (hasErrors()) { for (Enumeration exceptionsEnum = getCaughtExceptions().elements(); exceptionsEnum.hasMoreElements();) { if (exceptionsEnum.nextElement() instanceof RuntimeException) { return true; } } } return false; }
if (getIntegrityChecker().hasErrors()) {
/** * INTERNAL: * A descriptor may have been added after the session is logged in. * In this case the descriptor must be allowed to initialize any dependencies on this session. * Normally the descriptors are added before login, then initialized on login. */ public void initializeDescriptorIfSessionAlive(ClassDescriptor descriptor) { if (isConnected() && (descriptor.requiresInitialization(this))) { try { try { Collection descriptorsToAdd = new ArrayList(1); descriptorsToAdd.add(descriptor); addDescriptorsToSequencing(descriptorsToAdd); descriptor.preInitialize(this); descriptor.initialize(this); descriptor.postInitialize(this); getCommitManager().initializeCommitOrder(); } catch (RuntimeException exception) { getIntegrityChecker().handleError(exception); } if (getIntegrityChecker().hasErrors()) { //CR#4011 handleException(new IntegrityException(getIntegrityChecker())); } } finally { clearIntegrityChecker(); } } }
/** * INTERNAL: * A descriptor may have been added after the session is logged in. * In this case the descriptor must be allowed to initialize any dependencies on this session. * Normally the descriptors are added before login, then initialized on login. */ public void initializeDescriptorIfSessionAlive(ClassDescriptor descriptor) { if (isConnected() && (descriptor.requiresInitialization(this))) { try { try { Collection descriptorsToAdd = new ArrayList(1); descriptorsToAdd.add(descriptor); addDescriptorsToSequencing(descriptorsToAdd); descriptor.preInitialize(this); descriptor.initialize(this); descriptor.postInitialize(this); getCommitManager().initializeCommitOrder(); } catch (RuntimeException exception) { getIntegrityChecker().handleError(exception); } if (getIntegrityChecker().hasErrors()) { //CR#4011 handleException(new IntegrityException(getIntegrityChecker())); } } finally { clearIntegrityChecker(); } } }
if (getIntegrityChecker().hasErrors()) {
if (getIntegrityChecker().hasErrors()) {
if (getIntegrityChecker().hasErrors()) {
/** * INTERNAL: * A descriptor may have been added after the session is logged in. * In this case the descriptor must be allowed to initialize any dependencies on this session. * Normally the descriptors are added before login, then initialized on login. */ public void initializeDescriptorIfSessionAlive(ClassDescriptor descriptor) { if (isConnected() && (descriptor.requiresInitialization())) { try { try { initializeSequencing(); descriptor.preInitialize(this); descriptor.initialize(this); descriptor.postInitialize(this); getCommitManager().initializeCommitOrder(); } catch (RuntimeException exception) { getIntegrityChecker().handleError(exception); } if (getIntegrityChecker().hasErrors()) { //CR#4011 handleException(new IntegrityException(getIntegrityChecker())); } } finally { clearIntegrityChecker(); } } }
if (session.getIntegrityChecker().hasErrors()){ session.handleException(new IntegrityException(session.getIntegrityChecker()));
if (getIntegrityChecker().hasErrors()) { handleSevere(new IntegrityException(getIntegrityChecker()));
if (getIntegrityChecker().hasErrors()) { handleSevere(new IntegrityException(getIntegrityChecker()));
initSession(); if (this.session.getIntegrityChecker().hasErrors()){ this.session.handleException(new IntegrityException(session.getIntegrityChecker()));