@@ -619,6 +619,8 @@ private void writeUtilStubs(Symbol serviceSymbol) {
619619 writer .addImport ("smithy_http" , "tuples_to_fields" );
620620 writer .addImport ("smithy_http.aio" , "HTTPResponse" , "_HTTPResponse" );
621621 writer .addImport ("smithy_core.aio.utils" , "async_list" );
622+ writer .addImport ("smithy_core.aio.interfaces" , "ErrorInfo" );
623+ writer .addStdlibImport ("typing" , "Any" );
622624
623625 writer .write ("""
624626 class $1L($2T):
@@ -634,6 +636,10 @@ class $3L:
634636 def __init__(self, *, client_config: HTTPClientConfiguration | None = None):
635637 self._client_config = client_config
636638
639+ def get_error_info(self, exception: Exception, **kwargs: Any) -> ErrorInfo:
640+ \"\"\"Get information about an exception.\"\"\"
641+ return ErrorInfo(is_timeout_error=False, fault="client")
642+
637643 async def send(
638644 self, request: HTTPRequest, *, request_config: HTTPRequestConfiguration | None = None
639645 ) -> HTTPResponse:
@@ -657,6 +663,10 @@ def __init__(
657663 self.fields = tuples_to_fields(headers or [])
658664 self.body = body
659665
666+ def get_error_info(self, exception: Exception, **kwargs: Any) -> ErrorInfo:
667+ \"\"\"Get information about an exception.\"\"\"
668+ return ErrorInfo(is_timeout_error=False, fault="client")
669+
660670 async def send(
661671 self, request: HTTPRequest, *, request_config: HTTPRequestConfiguration | None = None
662672 ) -> _HTTPResponse:
0 commit comments