Examples of SplitException


Examples of org.nebulaframework.core.job.exceptions.SplitException

     
      // Notify Workers
      jobServiceImpl.notifyJobCancel(profile.getJobId());
     
      // Update Future State to 'Failed'
      profile.getFuture().setException(new SplitException(e));
      profile.getFuture().setState(GridJobState.FAILED);
     
      return;
    }
View Full Code Here

Examples of org.pdfsam.console.exceptions.console.SplitException

                } else if (SplitParsedCommand.S_SIZE.equals(inputCommand.getSplitType())) {
                    executeSizeSplit(inputCommand);
                } else if (SplitParsedCommand.S_BLEVEL.equals(inputCommand.getSplitType())) {
                    executeBookmarksSplit(inputCommand);
                } else {
                    throw new SplitException(SplitException.ERR_NOT_VALID_SPLIT_TYPE, new String[] { inputCommand
                            .getSplitType() });
                }
            } catch (Exception e) {
                throw new SplitException(e);
            } finally {
                setWorkCompleted();
            }
        } else {
            throw new ConsoleException(ConsoleException.ERR_BAD_COMMAND);
View Full Code Here

Examples of org.pdfsam.console.exceptions.console.SplitException

        Integer[] limits = inputCommand.getSplitPageNumbers();
        // limits list validation end clean
        TreeSet limitsList = validateSplitLimits(limits, n);
        if (limitsList.isEmpty()) {
            throw new SplitException(SplitException.ERR_NO_PAGE_LIMITS);
        }

        // HERE I'M SURE I'VE A LIMIT LIST WITH VALUES, I CAN START BOOKMARKS
        int currentPage;
        Document currentDocument = new Document(pdfReader.getPageSizeWithRotation(1));
View Full Code Here

Examples of org.pdfsam.console.exceptions.console.SplitException

            pdfReader.consolidateNamedDestinations();
            int n = pdfReader.getNumberOfPages();
            int numberPage = numberPages[0].intValue();
            if (numberPage < 1 || numberPage > n) {
                pdfReader.close();
                throw new SplitException(SplitException.ERR_NO_SUCH_PAGE, new String[] { "" + numberPage });
            } else {
                ArrayList retVal = new ArrayList();
                for (int i = numberPage; i < n; i += numberPage) {
                    retVal.add(new Integer(i));
                }
View Full Code Here

Examples of org.pdfsam.console.exceptions.console.SplitException

                    }
                    if (pageSet.size() > 0) {
                        LOG.debug("Found " + pageSet.size() + " destination pages at level " + bLevel);
                        inputCommand.setSplitPageNumbers((Integer[]) pageSet.toArray(new Integer[pageSet.size()]));
                    } else {
                        throw new SplitException(SplitException.ERR_BLEVEL_NO_DEST, new String[] { "" + bLevel });
                    }
                } else {
                    throw new SplitException(SplitException.ERR_BLEVEL, new String[] { "" + bLevel });
                }
            } else {
                input.close();
                pdfReader.close();
                throw new SplitException(SplitException.ERR_BLEVEL_OUTOFBOUNDS, new String[] { "" + bLevel,
                        "" + maxDepth });

            }
        } else {
            pdfReader.close();
            throw new SplitException(SplitException.ERR_NOT_VALID_BLEVEL, new String[] { "" + bLevel });
        }
        pdfReader.close();
        executeSplit(inputCommand, bookmarksTable);
    }
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.