def __init__(self, status):
    '\n        Create a CDF Exception\n\n        Uses CDF C library to look up an appropriate error message.\n\n        Parameters\n        ==========\n        status : ctypes.c_long\n            CDF status\n        '
    self.status = status
    self.string = (('CDF error ' + repr(status)) + ', unable to get details.')
    message = ctypes.create_string_buffer((const.CDF_STATUSTEXT_LEN + 1))
    try:
        retval = lib._library.CDFlib(const.SELECT_, const.CDF_STATUS_, ctypes.c_long(status), const.GET_, const.STATUS_TEXT_, message, const.NULL_)
        if (retval == const.CDF_OK):
            if isinstance(message.value, str):
                self.string = message.value
            elif isinstance(message.value, bytes):
                self.string = message.value.decode()
    except:
        pass
Create a CDF Exception

Uses CDF C library to look up an appropriate error message.

Parameters
==========
status : ctypes.c_long
    CDF status
def __init__(self, status):
    '\n        Create a CDF Exception\n\n        Uses CDF C library to look up an appropriate error message.\n\n        Parameters\n        ==========\n        status : ctypes.c_long\n            CDF status\n        '
    self.status = status
    self.string = (('CDF error ' + repr(status)) + ', unable to get details.')
    message = ctypes.create_string_buffer((const.CDF_STATUSTEXT_LEN + 1))
    try:
        retval = lib._library.CDFlib(const.SELECT_, const.CDF_STATUS_, ctypes.c_long(status), const.GET_, const.STATUS_TEXT_, message, const.NULL_)
        if (retval == const.CDF_OK):
            if isinstance(message.value, str):
                self.string = message.value
            elif isinstance(message.value, bytes):
                self.string = message.value.decode()
    except:
        pass