diff --git a/rust-runtime/aws-smithy-types/src/error/metadata.rs b/rust-runtime/aws-smithy-types/src/error/metadata.rs index 70c06c7e75..8631f224dd 100644 --- a/rust-runtime/aws-smithy-types/src/error/metadata.rs +++ b/rust-runtime/aws-smithy-types/src/error/metadata.rs @@ -128,6 +128,10 @@ impl ErrorMetadata { .as_ref() .and_then(|extras| extras.get(key).map(|k| k.as_str())) } + /// Returns all additional information about the error if it's present. + pub fn extras(&self) -> Option> { + self.extras + } /// Creates an `Error` builder. pub fn builder() -> Builder {