@@ -28,9 +28,7 @@ class DaqNotSupportedError(Error):
2828
2929
3030class DaqFunctionNotSupportedError (Error ):
31- """Error raised when a specific function isn't supported by the installed
32- version of the NI-DAQmx driver.
33- """
31+ """Error raised when a specific function isn't supported by the installed NI-DAQmx driver."""
3432
3533 pass
3634
@@ -40,7 +38,7 @@ class DaqError(Error):
4038
4139 def __init__ (self , message , error_code , task_name = "" ):
4240 """Initialize a new DaqError.
43-
41+
4442 Args:
4543 message (string): Specifies the error message.
4644 error_code (int): Specifies the NI-DAQmx error code.
@@ -72,19 +70,16 @@ def error_code(self):
7270
7371 @property
7472 def error_type (self ):
75- """:class:`nidaqmx.error_codes.DAQmxErrors`: Specifies the NI-DAQmx
76- error type."""
73+ """:class:`nidaqmx.error_codes.DAQmxErrors`: Specifies the NI-DAQmx error type."""
7774 return self ._error_type
7875
7976
8077class DaqReadError (DaqError ):
81- """Error raised by DAQmx write method that includes the amount of data that was
82- read.
83- """
78+ """Error raised by DAQmx write method that includes the amount of data that was read."""
8479
8580 def __init__ (self , message , error_code , samps_per_chan_read , task_name = "" ):
8681 """Initialize a new DaqReadError.
87-
82+
8883 Args:
8984 message (string): Specifies the error message.
9085 error_code (int): Specifies the NI-DAQmx error code.
@@ -100,13 +95,11 @@ def samps_per_chan_read(self):
10095
10196
10297class DaqWriteError (DaqError ):
103- """Error raised by DAQmx write method that includes the amount of data that was
104- written.
105- """
98+ """Error raised by DAQmx write method that includes the amount of data that was written."""
10699
107100 def __init__ (self , message , error_code , samps_per_chan_written , task_name = "" ):
108101 """Initialize a new DaqWriteError.
109-
102+
110103 Args:
111104 message (string): Specifies the error message.
112105 error_code (int): Specifies the NI-DAQmx error code.
@@ -127,7 +120,7 @@ class DaqWarning(Warning):
127120
128121 def __init__ (self , message , error_code ):
129122 """Initialize a new DaqWarning.
130-
123+
131124 Args:
132125 message (string): Specifies the warning message.
133126 error_code (int): Specifies the NI-DAQmx error code.
@@ -148,8 +141,7 @@ def error_code(self):
148141
149142 @property
150143 def error_type (self ):
151- """:class:`nidaqmx.error_codes.DAQmxWarnings`: Specifies the NI-DAQmx
152- error type."""
144+ """:class:`nidaqmx.error_codes.DAQmxWarnings`: Specifies the NI-DAQmx error type."""
153145 return self ._error_type
154146
155147
@@ -191,7 +183,7 @@ def is_array_buffer_too_small(error_code):
191183
192184
193185class RpcError (Error ):
194- """An error specific to sessions to the NI gRPC Device Server"""
186+ """An error specific to sessions to the NI gRPC Device Server. """
195187
196188 def __init__ (self , rpc_code , description ):
197189 """Initialize a new RpcError."""
0 commit comments