(self, message, error_code)
Args:
            message (string): Specifies the warning message.
            error_code (int): Specifies the NI-DAQmx error code.
Args:
            message (string): Specifies the warning message.
            error_code (int): Specifies the NI-DAQmx error code.
Args : message ( string ) : Specifies the warning message . error_code ( int ) : Specifies the NI - DAQmx error code .
def __init__(self, message, error_code):
        """
        Args:
            message (string): Specifies the warning message.
            error_code (int): Specifies the NI-DAQmx error code.
        """
        super(DaqWarning, self).__init__(
            '\nWarning {0} occurred.\n\n{1}'.format(error_code, message))

        self._error_code = error_code

        try:
            self._error_type = DAQmxWarnings(self._error_code)
        except ValueError:
            self._error_type = DAQmxWarnings.UNKNOWN
def __init__ ( self , message , error_code ) : super ( DaqWarning , self ) . __init__ ( '\nWarning {0} occurred.\n\n{1}' . format ( error_code , message ) ) self . _error_code = error_code try : self . _error_type = DAQmxWarnings ( self . _error_code ) except ValueError : self . _error_type = DAQmxWarnings . UNKNOWN