Add GhostscriptError
parent
23a25832ae
commit
9e79a795b8
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue