def spiceErrorCheck(f):
@functools.wraps(f)<EOL>def with_errcheck(*args, **kwargs):<EOL><INDENT>try:<EOL><INDENT>res = f(*args, **kwargs)<EOL>checkForSpiceError(f)<EOL>return res<EOL><DEDENT>except:<EOL><INDENT>raise<EOL><DEDENT><DEDENT>return with_errcheck<EOL>
Decorator for spiceypy hooking into spice error system.
If an error is detected, an output similar to outmsg

:type f: builtins.function
:return:
:rtype: