-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Re-point those using BuildError
from smithy-http to smithy-types
#3070
Changes from all commits
e6a6b32
29dfe4d
d994f10
c95849c
6df9f10
5db9348
45c813d
f6ccf7e
fc4c5f4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,11 +9,17 @@ | |
use aws_smithy_types::config_bag::{Storable, StoreReplace}; | ||
use std::borrow::Cow; | ||
|
||
//TODO(runtimeCratesVersioningCleanup): Re-point those who use the following reexport to | ||
// directly depend on `aws_smithy_types` and remove the reexport below. | ||
//TODO(runtimeCratesVersioningCleanup): Re-point those who use the deprecated type aliases to | ||
// directly depend on `aws_smithy_types` and remove the type aliases below. | ||
/// Errors for operations | ||
pub mod error { | ||
pub use aws_smithy_types::error::operation::{BuildError, SerializationError}; | ||
/// An error occurred attempting to build an `Operation` from an input. | ||
#[deprecated(note = "Moved to `aws_smithy_types::error::operation::BuildError`.")] | ||
pub type BuildError = aws_smithy_types::error::operation::BuildError; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Any code generated from this release will raise a let error = some_call_that_generates_a_serialization_error();
match error {
Serialization(se) => handle_se(se),
_ => (),
}
// Will the compiler produce an error here, stating that the passed-in type is
// `aws_smithy_types::error::operation::SerializationError`?
fn handle_error(e: aws_smithy_http::operation::error::SerializationError) {
// ...
} There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
It'll be the former, but whether it compiles or not ultimately depends on the compiler's warn level configured on a customer's end. |
||
|
||
/// An error that occurs when serialization of an operation fails. | ||
#[deprecated(note = "Moved to `aws_smithy_types::error::operation::SerializationError`.")] | ||
pub type SerializationError = aws_smithy_types::error::operation::SerializationError; | ||
} | ||
|
||
/// Metadata added to the [`ConfigBag`](aws_smithy_types::config_bag::ConfigBag) that identifies the API being called. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this TODO for pre-GA or will we do this post GA?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd expect it's for pre-GA. After we've released a new version (likely a breaking release), we'll go ahead and remove those deprecated type aliases.