Examples of FilerException


Examples of com.dbxml.db.core.filer.FilerException

         throw new FilerException(FaultCodes.COL_COLLECTION_CLOSED, "Filer is closed");
   }

   private void checkReadOnly() throws DBException {
      if ( readOnly )
         throw new FilerException(FaultCodes.COL_COLLECTION_READ_ONLY, "Filer is read-only");
   }
View Full Code Here

Examples of com.dbxml.db.core.filer.FilerException

            throw e;
         }
         catch ( Exception e ) {
            tx.cancel();
            e.printStackTrace(System.err);
            throw new FilerException(FaultCodes.COL_CANNOT_CREATE, e);
         }
      }
      return false;
   }
View Full Code Here

Examples of javax.annotation.processing.FilerException

    //TODO: do we need to check validity of 'name', or can we trust the filemanager to handle that?
    FileObject fo = _fileManager.getFileForOutput(
        location, pkg.toString(), relativeName.toString(), null);
    URI uri = fo.toUri();
    if (_createdFiles.contains(uri)) {
      throw new FilerException("Resource already created : " + location + '/' + pkg + '/' + relativeName); //$NON-NLS-1$
    }

    _createdFiles.add(uri);
    return fo;
  }
View Full Code Here

Examples of javax.annotation.processing.FilerException

    //TODO: do we need to check validity of 'name', or can we trust the filemanager to handle that?
    JavaFileObject jfo = _fileManager.getJavaFileForOutput(
        StandardLocation.SOURCE_OUTPUT, name.toString(), JavaFileObject.Kind.SOURCE, null);
    URI uri = jfo.toUri();
    if (_createdFiles.contains(uri)) {
      throw new FilerException("Source file already created : " + name); //$NON-NLS-1$
    }

    _createdFiles.add(uri);
    // hook the file object's writers to create compilation unit and add to addedUnits()
    return new HookedJavaFileObject(jfo, jfo.getName(), this);
View Full Code Here

Examples of javax.annotation.processing.FilerException

    //TODO: do we need to check validity of 'name', or can we trust the filemanager to handle that?
    FileObject fo = _fileManager.getFileForInput(
        location, pkg.toString(), relativeName.toString());
    URI uri = fo.toUri();
    if (_createdFiles.contains(uri)) {
      throw new FilerException("Resource already created : " + location + '/' + pkg + '/' + relativeName); //$NON-NLS-1$
    }

    _createdFiles.add(uri);
    return fo;
  }
View Full Code Here

Examples of javax.annotation.processing.FilerException

      Element... originatingElements) throws IOException {
    JavaFileObject jfo = _fileManager.getJavaFileForOutput(
        StandardLocation.CLASS_OUTPUT, name.toString(), JavaFileObject.Kind.CLASS, null);
    URI uri = jfo.toUri();
    if (_createdFiles.contains(uri)) {
      throw new FilerException("Class file already created : " + name); //$NON-NLS-1$
    }

    _createdFiles.add(uri);
    return new HookedJavaFileObject(jfo, jfo.getName(), this);
  }
View Full Code Here

Examples of javax.annotation.processing.FilerException

    validateName(relativeName);
    FileObject fo = _fileManager.getFileForOutput(
        location, pkg.toString(), relativeName.toString(), null);
    URI uri = fo.toUri();
    if (_createdFiles.contains(uri)) {
      throw new FilerException("Resource already created : " + location + '/' + pkg + '/' + relativeName); //$NON-NLS-1$
    }

    _createdFiles.add(uri);
    return fo;
  }
View Full Code Here

Examples of javax.annotation.processing.FilerException

      Element... originatingElements) throws IOException {
    JavaFileObject jfo = _fileManager.getJavaFileForOutput(
        StandardLocation.SOURCE_OUTPUT, name.toString(), JavaFileObject.Kind.SOURCE, null);
    URI uri = jfo.toUri();
    if (_createdFiles.contains(uri)) {
      throw new FilerException("Source file already created : " + name); //$NON-NLS-1$
    }

    _createdFiles.add(uri);
    // hook the file object's writers to create compilation unit and add to addedUnits()
    return new HookedJavaFileObject(jfo, jfo.getName(), this);
View Full Code Here

Examples of javax.annotation.processing.FilerException

    if (fo == null) {
      throw new FileNotFoundException("Resource does not exist : " + location + '/' + pkg + '/' + relativeName); //$NON-NLS-1$
    }
    URI uri = fo.toUri();
    if (_createdFiles.contains(uri)) {
      throw new FilerException("Resource already created : " + location + '/' + pkg + '/' + relativeName); //$NON-NLS-1$
    }

    _createdFiles.add(uri);
    return fo;
  }
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.