Skip to content

Commit f64a997

Browse files
authored
fix: unify serde exceptions (#122)
1 parent fcf30d2 commit f64a997

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client-runtime/protocols/aws-xml-protocols/common/src/aws/sdk/kotlin/runtime/protocol/xml/RestXmlErrorDeserializer.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ internal object ErrorResponseDeserializer {
7878
}
7979

8080
XmlErrorResponse(xmlError, requestId ?: xmlError?.requestId)
81-
} catch (e: DeserializerStateException) {
81+
} catch (e: DeserializationException) {
8282
null // return so an appropriate exception type can be instantiated above here.
8383
}
8484
}
@@ -118,7 +118,7 @@ internal object XmlErrorDeserializer {
118118
}
119119

120120
XmlError(requestId, code, message)
121-
} catch (e: DeserializerStateException) {
121+
} catch (e: DeserializationException) {
122122
null // return so an appropriate exception type can be instantiated above here.
123123
}
124124
}

0 commit comments

Comments
 (0)