nibcq.errors.EloadParameterError
- exception nibcq.errors.EloadParameterError(message: str = 'Current limit or measurement record length not configured successfully.')
Bases:
BCQErrorException raised when there is an issue with Eload parameters.
This error occurs when the Eload parameters are invalid or incompatible with the test requirements.
- Parameters:
message (str, optional) – Custom error message. Defaults to a standard message.
Example
The following are examples of how this error can be raised:
General parameter issue
>>> raise EloadParameterError( >>> "Current limit or measurement record length not configured successfully." >>> )
Current limit exceeded
>>> raise EloadParameterError( >>> f"Current limit {current_limit} A exceeds the allowed maximum of {max_current} A." >>> )
Invalid measurement record length
>>> raise EloadParameterError( >>> f"Measurement record length {record_length} is invalid for the selected mode." >>> )