def test_exception_attributes(self):
        """Ensures the exception stores the correct attributes."""
        original_exception = Exception("Original error")
        response_text = "Error response text"
        message = "Extended error message"

        exception = ExtendedRequestException(message, original_exception, response_text)

        assert str(exception) == message
        assert exception.original_exception == original_exception
        assert exception.response_text == response_text
Ensures the exception stores the correct attributes.
llama-index-integrations/llms/llama-index-llms-oci-data-science/tests/test_oci_data_science_client.py