Add GhostscriptError

This commit is contained in:
Vinayak Mehta
2018-12-18 09:14:21 +05:30
parent 23a25832ae
commit 9e79a795b8
+5
View File
@@ -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