Package org.bladerunnerjs.logging

Examples of org.bladerunnerjs.logging.Logger


  }
 
  @Override
  public void delete() throws ModelUpdateException
  {
    Logger logger = rootNode.logger(Node.class);
   
    try {
      if(!dirExists()) throw new NoSuchDirectoryException(this);
     
      try {
        FileUtils.deleteDirectory(dir);
        logger.debug(Messages.NODE_DELETED_LOG_MSG, getTypeName(), dir.getPath());
        notifyObservers(new NodeDeletedEvent(), this);
      }
      catch(IOException e) {
        throw new ModelUpdateException(e);
      }
    }
    catch(Exception e) {
      logger.error(Messages.NODE_DELETION_FAILED_LOG_MSG, getTypeName(), dir().getPath());
      throw e;
    }
  }
View Full Code Here

TOP

Related Classes of org.bladerunnerjs.logging.Logger

Copyright © 2018 www.massapicom. 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.