def raise_for_exception_adu(resp_adu):
resp_pdu = resp_adu[<NUM_LIT:7>:]<EOL>pdu_to_function_code_or_raise_error(resp_pdu)<EOL>
Check a response ADU for error

    :param resp_adu: Response ADU.
    :raises ModbusError: When a response contains an error code.