From 9e79a795b878c51a44f73486ff5ae249494a1fc0 Mon Sep 17 00:00:00 2001 From: Vinayak Mehta Date: Tue, 18 Dec 2018 09:14:21 +0530 Subject: [PATCH] Add GhostscriptError --- camelot/ext/ghostscript/_gsprint.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/camelot/ext/ghostscript/_gsprint.py b/camelot/ext/ghostscript/_gsprint.py index 624e18e..b30165c 100644 --- a/camelot/ext/ghostscript/_gsprint.py +++ b/camelot/ext/ghostscript/_gsprint.py @@ -53,6 +53,11 @@ display_callback = c_void_p # https://www.ghostscript.com/doc/current/API.htm +class GhostscriptError(Exception): + def __init__(self, ecode): + self.code = ecode + + def new_instance(): """Create a new instance of Ghostscript