
com.github.mertakdut.exception.OutOfPagesException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of EpubParser Show documentation
Show all versions of EpubParser Show documentation
Parses .epub files, provides reading page by page.
package com.github.mertakdut.exception;
public class OutOfPagesException extends Exception {
private int pageCount;
private static final long serialVersionUID = 2607084451614265004L;
public OutOfPagesException(int index, int pageCount) {
super("Out of bounds at position: " + index + ", max length is: " + (pageCount - 1));
this.pageCount = pageCount;
}
public int getPageCount() {
return pageCount;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy