Examples of TerminatedException


Examples of org.exist.xquery.TerminatedException

//        if( callback != null ) {
//            callback.startCollection( current.getURI().toString() );
//        }

        if( ( monitor != null ) && !monitor.proceed() ) {
            throw( new TerminatedException( "system export terminated by db" ) );
        }

//        if( !current.getURI().equalsInternal( XmldbURI.ROOT_COLLECTION_URI ) ) {
            output.newCollection( Backup.encode( URIUtils.urlDecodeUtf8( current.getURI() ) ) );
//        }
View Full Code Here

Examples of org.exist.xquery.TerminatedException

        if( callback != null ) {
            callback.startDocument( doc.getFileURI().toString(), count, docsCount );
        }

        if( ( monitor != null ) && !monitor.proceed() ) {
            throw( new TerminatedException( "system export terminated by db" ) );
        }
        final boolean needsBackup = ( prevBackup == null ) || ( date.getTime() < doc.getMetadata().getLastModified() );

        if( needsBackup ) {
            final OutputStream os = output.newEntry( Backup.encode( URIUtils.urlDecodeUtf8( doc.getFileURI() ) ) );
View Full Code Here

Examples of org.exist.xquery.TerminatedException

//        public void startDocument(String path) {
//        }

        public void startDocument(String name, int current, int count) throws TerminatedException {
            if (!monitor.proceed()) {
                throw new TerminatedException("consistency check terminated");
            }
            if ((current % 1000 == 0) || (current == count)) {
                log.write("  DOCUMENT: ");
                log.write(Integer.valueOf(current).toString());
                log.write(" of ");
View Full Code Here

Examples of org.exist.xquery.TerminatedException

            }
        }

        public void startCollection(String path) throws TerminatedException {
            if (!monitor.proceed()) {
                throw new TerminatedException("consistency check terminated");
            }
            if (errorFound) {
                log.write("----------------------------------------------\n");
            }
            errorFound = false;
View Full Code Here

Examples of org.exist.xquery.TerminatedException

      if (command.is(CommandContinuation.STOP) && !command.isStatus(STOPPED)) {
        command.setStatus(STOPPED);
       
        sessionClosed(true);
             
        throw new TerminatedException(expr.getLine(), expr.getColumn(), "Debuggee STOP command.");
      }

      //step-into is done
      if (command.is(CommandContinuation.STEP_INTO) && command.isStatus(RUNNING)) {
        command.setStatus(BREAK);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.