Package mykeynote.exceptions.report

Examples of mykeynote.exceptions.report.ReportFileCreationException


      if(!fileErrorLog.exists()){
        if(!fileErrorLog.createNewFile()){
          if(config.isDemonizied()){
            System.err.println("Unable to create the error log file.");
          }
          throw new ReportFileCreationException("Unable to create the " +
              fileErrorLog.getAbsolutePath() + ".");
        }
      }
      writeError = new BufferedWriter(new FileWriter(fileErrorLog, true));
     
      if(config.getDebugLog()){
        if(!fileDebugLog.exists()){
          if(!fileDebugLog.createNewFile()){
            reportErrorLog("localhost", "Unable to create the debug log file");
            throw new ReportFileCreationException("Unable to create the " +
              fileDebugLog.getAbsolutePath() + ".");
          }
        }
        writeDebug = new BufferedWriter(new FileWriter(fileDebugLog, true), buffSize);
      }
     
      if(config.getVerbouseLog()){
        if(!fileVerbouseLog.exists()){
          if(!fileVerbouseLog.createNewFile()){
            reportErrorLog("localhost", "Unable to create the verbouse log file");
            throw new ReportFileCreationException("Unable to create the " +
              fileVerbouseLog.getAbsolutePath() + ".");
          }
        }
        writeVerbouse = new BufferedWriter(new FileWriter(fileVerbouseLog, true));
      }
     
     
      if(!fileServerLog.exists()){
        if(!fileServerLog.createNewFile()){
          reportErrorLog("localhost", "Unable to create the server log file");
          throw new ReportFileCreationException("Unable to create the " +
              fileServerLog.getAbsolutePath() + ".");
        }
      }
      writeServer = new BufferedWriter(new FileWriter(fileServerLog, true));
View Full Code Here

TOP

Related Classes of mykeynote.exceptions.report.ReportFileCreationException

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.