# Path: modernrpc/exceptions.py
# RPC_INTERNAL_ERROR = -32603
# 
# RPC_METHOD_NOT_FOUND = -32601
# 
# RPC_INVALID_REQUEST = -32600


import pytest
    import requests
from modernrpc.exceptions import (
    RPC_INTERNAL_ERROR,
    RPC_METHOD_NOT_FOUND,
    RPC_INVALID_REQUEST,
)
        assert result[1]
    xmlrpc_client.assert_exception_code(exc_info.value, RPC_METHOD_NOT_FOUND)


def test_xmlrpc_multicall_with_zero_division_error(xmlrpc_client):
    result = xmlrpc_client.multicall(
        [
            ("add", [5, 10]),
            ("divide", [30, 0]),
            ("add", [8, 8]),
        ]
    )
    assert isinstance(result, xmlrpc_client.multicall_result_klass)
    assert result[0] == 15
    assert result[2] == 16

    exc_match = r"division by zero"
    with pytest.raises(
        xmlrpc_client.error_response_exception, match=exc_match
    ) as exc_info:
        assert result[1]
    xmlrpc_client.assert_exception_code(exc_info.value, RPC_INTERNAL_ERROR)


def test_jsonrpc_multicall_error(jsonrpc_client):
    exc_match = r'Method not found: "system.multicall"'
    with pytest.raises(
        jsonrpc_client.error_response_exception, match=exc_match
    ) as exc_info:
        jsonrpc_client.call("system.multicall")

# Path: modernrpc/exceptions.py
# RPC_INTERNAL_ERROR = -32603
# 
# RPC_METHOD_NOT_FOUND = -32601
# 
# RPC_INVALID_REQUEST = -32600


# Path: tests/functional/test_multicall_batch.py
import pytest
    import requests
from modernrpc.exceptions import (
    RPC_INTERNAL_ERROR,
    RPC_METHOD_NOT_FOUND,
    RPC_INVALID_REQUEST,
)

        assert result[1]
    xmlrpc_client.assert_exception_code(exc_info.value, RPC_METHOD_NOT_FOUND)


def test_xmlrpc_multicall_with_zero_division_error(xmlrpc_client):
    result = xmlrpc_client.multicall(
        [
            ("add", [5, 10]),
            ("divide", [30, 0]),
            ("add", [8, 8]),
        ]
    )
    assert isinstance(result, xmlrpc_client.multicall_result_klass)
    assert result[0] == 15
    assert result[2] == 16

    exc_match = r"division by zero"
    with pytest.raises(
        xmlrpc_client.error_response_exception, match=exc_match
    ) as exc_info:
        assert result[1]
    xmlrpc_client.assert_exception_code(exc_info.value, RPC_INTERNAL_ERROR)


def test_jsonrpc_multicall_error(jsonrpc_client):
    exc_match = r'Method not found: "system.multicall"'
    with pytest.raises(
        jsonrpc_client.error_response_exception, match=exc_match
    ) as exc_info:
        jsonrpc_client.call("system.multicall")

    jsonrpc_client.assert_exception_code(exc_info.value, RPC_METHOD_NOT_FOUND)