/** * PUBLIC: * Print both the normal and internal stack traces. */ public void printStackTrace() { printStackTrace(System.err); }
handleSevere(new IntegrityException(getIntegrityChecker()));
writer.println(cr + ExceptionMessageGenerator.getHeader("DescriptorExceptionsHeader")); writer.println("---------------------------------------------------------"); for (Enumeration enumtr = getIntegrityChecker().getCaughtExceptions().elements(); enumtr.hasMoreElements();) { Exception e = (Exception)enumtr.nextElement(); if (getIntegrityChecker().hasRuntimeExceptions()) { writer.println(cr + ExceptionMessageGenerator.getHeader("RuntimeExceptionsHeader")); writer.println("---------------------------------------------------------"); for (Enumeration enumtr = getIntegrityChecker().getCaughtExceptions().elements(); enumtr.hasMoreElements();) { Exception e = (Exception)enumtr.nextElement();
/** * 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(); } } }
writer.println(cr + ExceptionMessageGenerator.getHeader("DescriptorExceptionsHeader")); writer.println("---------------------------------------------------------"); for (Enumeration enumtr = getIntegrityChecker().getCaughtExceptions().elements(); enumtr.hasMoreElements();) { Exception e = (Exception)enumtr.nextElement(); if (getIntegrityChecker().hasRuntimeExceptions()) { writer.println(cr + ExceptionMessageGenerator.getHeader("RuntimeExceptionsHeader")); writer.println("---------------------------------------------------------"); for (Enumeration enumtr = getIntegrityChecker().getCaughtExceptions().elements(); enumtr.hasMoreElements();) { Exception e = (Exception)enumtr.nextElement();
/** * 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(); } } }
/** * PUBLIC: * Print both the normal and internal stack traces. */ public void printStackTrace() { printStackTrace(System.err); }
writer.println(cr + ExceptionMessageGenerator.getHeader("DescriptorExceptionsHeader")); writer.println("---------------------------------------------------------"); for (Enumeration enumtr = getIntegrityChecker().getCaughtExceptions().elements(); enumtr.hasMoreElements();) { Exception e = (Exception)enumtr.nextElement(); if (getIntegrityChecker().hasRuntimeExceptions()) { writer.println(cr + ExceptionMessageGenerator.getHeader("RuntimeExceptionsHeader")); writer.println("---------------------------------------------------------"); for (Enumeration enumtr = getIntegrityChecker().getCaughtExceptions().elements(); enumtr.hasMoreElements();) { Exception e = (Exception)enumtr.nextElement();
handleSevere(new IntegrityException(getIntegrityChecker()));
/** * PUBLIC: * Print both the normal and internal stack traces. */ public void printStackTrace() { printStackTrace(System.err); }
writer.println(cr + ExceptionMessageGenerator.getHeader("DescriptorExceptionsHeader")); writer.println("---------------------------------------------------------"); for (Enumeration enumtr = getIntegrityChecker().getCaughtExceptions().elements(); enumtr.hasMoreElements();) { Exception e = (Exception)enumtr.nextElement(); if (getIntegrityChecker().hasRuntimeExceptions()) { writer.println(cr + ExceptionMessageGenerator.getHeader("RuntimeExceptionsHeader")); writer.println("---------------------------------------------------------"); for (Enumeration enumtr = getIntegrityChecker().getCaughtExceptions().elements(); enumtr.hasMoreElements();) { Exception e = (Exception)enumtr.nextElement();
handleException(new IntegrityException(getIntegrityChecker()));
/** * PUBLIC: * Print both the normal and internal stack traces. */ public void printStackTrace(PrintStream outStream) { printStackTrace(new PrintWriter(outStream)); }
writer.println(cr + ExceptionMessageGenerator.getHeader("DescriptorExceptionsHeader")); writer.println("---------------------------------------------------------"); for (Enumeration enumtr = getIntegrityChecker().getCaughtExceptions().elements(); enumtr.hasMoreElements();) { Exception e = (Exception)enumtr.nextElement(); if (getIntegrityChecker().hasRuntimeExceptions()) { writer.println(cr + ExceptionMessageGenerator.getHeader("RuntimeExceptionsHeader")); writer.println("---------------------------------------------------------"); for (Enumeration enumtr = getIntegrityChecker().getCaughtExceptions().elements(); enumtr.hasMoreElements();) { Exception e = (Exception)enumtr.nextElement();
handleSevere(new IntegrityException(getIntegrityChecker()));
/** * PUBLIC: * Print both the normal and internal stack traces. */ public void printStackTrace(PrintStream outStream) { printStackTrace(new PrintWriter(outStream)); }
writer.println(cr + ExceptionMessageGenerator.getHeader("DescriptorExceptionsHeader")); writer.println("---------------------------------------------------------"); for (Enumeration enumtr = getIntegrityChecker().getCaughtExceptions().elements(); enumtr.hasMoreElements();) { Exception e = (Exception)enumtr.nextElement(); if (getIntegrityChecker().hasRuntimeExceptions()) { writer.println(cr + ExceptionMessageGenerator.getHeader("RuntimeExceptionsHeader")); writer.println("---------------------------------------------------------"); for (Enumeration enumtr = getIntegrityChecker().getCaughtExceptions().elements(); enumtr.hasMoreElements();) { Exception e = (Exception)enumtr.nextElement();
/** * 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(); } } }
/** * PUBLIC: * Print both the normal and internal stack traces. */ public void printStackTrace(PrintStream outStream) { printStackTrace(new PrintWriter(outStream)); }
session.handleException(new IntegrityException(session.getIntegrityChecker()));