(self, message, error_code, task_name='')
Args:
            message (string): Specifies the error message.
            error_code (int): Specifies the NI-DAQmx error code.
Args:
            message (string): Specifies the error message.
            error_code (int): Specifies the NI-DAQmx error code.
Args : message ( string ) : Specifies the error message . error_code ( int ) : Specifies the NI - DAQmx error code .
def __init__(self, message, error_code, task_name=''):
        """
        Args:
            message (string): Specifies the error message.
            error_code (int): Specifies the NI-DAQmx error code.
        """
        if task_name:
            message = '{0}\n\nTask Name: {1}'.format(message, task_name)

        super(DaqError, self).__init__(message)

        self._error_code = error_code

        try:
            self._error_type = DAQmxErrors(self._error_code)
        except ValueError:
            self._error_type = DAQmxErrors.UNKNOWN
def __init__ ( self , message , error_code , task_name = '' ) : if task_name : message = '{0}\n\nTask Name: {1}' . format ( message , task_name ) super ( DaqError , self ) . __init__ ( message ) self . _error_code = error_code try : self . _error_type = DAQmxErrors ( self . _error_code ) except ValueError : self . _error_type = DAQmxErrors . UNKNOWN