Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions rust-runtime/aws-smithy-types/src/error/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<HashMap<&'static str, String>> {
self.extras
}

/// Creates an `Error` builder.
pub fn builder() -> Builder {
Expand Down