- page(double _w=0, double _h=0) : index(0), width(_w), height(_h), bbox() { }
+ page(double _w=0, double _h=0) : index(0), width(_w), height(_h), image_box() { }
extern int debug_indent;
void debug(const char *msg, ...) FORMAT_CHECK(printf, 1, 2);
void warn(const char *msg, ...) FORMAT_CHECK(printf, 1, 2);
void die(const char *msg, ...) FORMAT_CHECK(printf, 1, 2) NONRET;
extern int debug_indent;
void debug(const char *msg, ...) FORMAT_CHECK(printf, 1, 2);
void warn(const char *msg, ...) FORMAT_CHECK(printf, 1, 2);
void die(const char *msg, ...) FORMAT_CHECK(printf, 1, 2) NONRET;
+// This one is called during execution of commands and propagated as an exception
+void err(const char *msg, ...) FORMAT_CHECK(printf, 1, 2) NONRET;
+
+class paperjam_error : public exception {
+ string message;
+public:
+ paperjam_error(string m) : message(m) { }
+ const char *what() const noexcept override { return message.c_str(); }
+};
+