DefaultValidateResponse

Feature that inspects the HTTP response and throws an exception if it is not successful This is provided for clients generated by smithy-kotlin codegen. Not expected to be used by AWS services which define specific mappings from an error to the appropriate modeled exception. Out of the box nothing in Smithy gives us that ability (other than the HTTP status code which is not guaranteed unique per error) so all we can do is throw a generic exception with the code and let the user figure out what modeled error it was using whatever matching mechanism they want.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open suspend fun <H> handle(request: SdkHttpRequest, next: H): <Error class: unknown class>

Inherited functions

Link copied to clipboard
open fun install(op: SdkHttpOperation<*, *>)