def getmsg(option, lenout=_default_len_out):
option = stypes.stringToCharP(option)<EOL>lenout = ctypes.c_int(lenout)<EOL>msg = stypes.stringToCharP(lenout)<EOL>libspice.getmsg_c(option, lenout, msg)<EOL>return stypes.toPythonString(msg)<EOL>
Retrieve the current short error message,
the explanation of the short error message, or the
long error message.

http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/getmsg_c.html

:param option: Indicates type of error message.
:type option: str
:param lenout: Available space in the output string msg.
:type lenout: int
:return: The error message to be retrieved.
:rtype: str