Add GhostscriptError

pull/2/head
Vinayak Mehta 2018-12-18 09:14:21 +05:30
parent 23a25832ae
commit 9e79a795b8
1 changed files with 5 additions and 0 deletions

View File

@ -53,6 +53,11 @@ display_callback = c_void_p
# https://www.ghostscript.com/doc/current/API.htm # https://www.ghostscript.com/doc/current/API.htm
class GhostscriptError(Exception):
def __init__(self, ecode):
self.code = ecode
def new_instance(): def new_instance():
"""Create a new instance of Ghostscript """Create a new instance of Ghostscript