Package org.pdfsam.console.exceptions.console

Examples of org.pdfsam.console.exceptions.console.ConsoleException


      }finally{
        setWorkCompleted();
      }
    }
    else{
      throw new ConsoleException(ConsoleException.ERR_BAD_COMMAND);
    }
  }
View Full Code Here


                throw new EncryptException(e);
            } finally {
                setWorkCompleted();
            }
        } else {
            throw new ConsoleException(ConsoleException.ERR_BAD_COMMAND);
        }
    }
View Full Code Here

          retVal = cmdLineHandler.parse(inputArguments);
          if (!retVal) {
            throw new ParseException(ParseException.ERR_PARSE, new String[] { cmdLineHandler.getParseError() });
          }
        } else {
          throw new ConsoleException(ConsoleException.CMD_LINE_HANDLER_NULL);
        }
      } else {
        throw new ConsoleException(ConsoleException.CMD_LINE_HANDLER_NULL);
      }
    } finally {
      stopWatch.stop();
      log.debug("Command '" + getInputCommand() + "' parsed in "
          + DurationFormatUtils.formatDurationWords(stopWatch.getTime(), true, true));
View Full Code Here

        log.debug("Starting arguments validation.");
        if (cmdLineHandler != null) {
          if (cmdValidator != null) {
            retVal = cmdValidator.validate(cmdLineHandler);
          } else {
            throw new ConsoleException(ConsoleException.CMD_LINE_VALIDATOR_NULL);
          }
        } else {
          throw new ConsoleException(ConsoleException.CMD_LINE_HANDLER_NULL);
        }
      } else {
        throw new ConsoleException(ConsoleException.CMD_LINE_HANDLER_NULL);
      }
    } finally {
      stopWatch.stop();
      log.debug("Command '" + getInputCommand() + "' validated in "
          + DurationFormatUtils.formatDurationWords(stopWatch.getTime(), true, true));
View Full Code Here

         
          //-fullscreen
          parsedCommandDTO.setFullScreen(((BooleanParam) cmdLineHandler.getOption(SlideShowParsedCommand.FULLSCREEN_ARG)).isTrue());

    }else{
      throw new ConsoleException(ConsoleException.CMD_LINE_HANDLER_NULL);
    }
    return parsedCommandDTO; 
  }
View Full Code Here

            }else{
              throw new RotateException(RotateException.ERR_NOT_SINGLE_ROTATION, new String[]{rOption.getValue()});
            }         
          }
    }else{
      throw new ConsoleException(ConsoleException.CMD_LINE_HANDLER_NULL);
    }
    return parsedCommandDTO; 
  }
View Full Code Here

            parsedCommandDTO.setDisplayDocTitle(((BooleanParam) cmdLineHandler.getOption(SetViewerParsedCommand.DOCTITLE_ARG)).isTrue());
            //-noprintscaling
            parsedCommandDTO.setNoPrintScaling(((BooleanParam) cmdLineHandler.getOption(SetViewerParsedCommand.NOPRINTSCALING_ARG)).isTrue());
          
      }else{
        throw new ConsoleException(ConsoleException.CMD_LINE_HANDLER_NULL);
      }       
      return parsedCommandDTO;
  }
View Full Code Here

            }
            parsedCommandDTO.setInputFileList(FileUtility.getPdfFiles(fOption.getPdfFiles()));
          }
         
    }else{
      throw new ConsoleException(ConsoleException.CMD_LINE_HANDLER_NULL);
    }
    return parsedCommandDTO; 
  }
View Full Code Here

        }
      } else {
        throw new ParseException(ParseException.ERR_NO_F_OR_D);
      }
    }else{
      throw new ConsoleException(ConsoleException.CMD_LINE_HANDLER_NULL);
    }
    return parsedCommandDTO; 
  }
View Full Code Here

            if(nOption.isSet()){
              throw new ParseException(ParseException.ERR_N_NOT_NEEDED);
              }
          }
    }else{
      throw new ConsoleException(ConsoleException.CMD_LINE_HANDLER_NULL);
    }
    return parsedCommandDTO;
  }
View Full Code Here

TOP

Related Classes of org.pdfsam.console.exceptions.console.ConsoleException

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.