pub struct BuildError { /* private fields */ }
Expand description
An error occurred attempting to build an Operation
from an input
These are almost always due to user error caused by limitations of specific fields due to protocol serialization (e.g. fields that can only be a subset ASCII because they are serialized as the name of an HTTP header)
Implementations§
Source§impl BuildError
impl BuildError
Sourcepub fn missing_field(field: &'static str, details: &'static str) -> BuildError
pub fn missing_field(field: &'static str, details: &'static str) -> BuildError
Construct a build error for a missing field
Sourcepub fn invalid_field(
field: &'static str,
details: impl Into<String>,
) -> BuildError
pub fn invalid_field( field: &'static str, details: impl Into<String>, ) -> BuildError
Construct a build error for an invalid field
Trait Implementations§
Source§impl Debug for BuildError
impl Debug for BuildError
Source§impl Display for BuildError
impl Display for BuildError
Source§impl Error for BuildError
impl Error for BuildError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<BuildError> for Error
impl From<BuildError> for Error
Source§fn from(value: BuildError) -> Self
fn from(value: BuildError) -> Self
Converts to this type from the input type.
Source§impl<E, R> From<BuildError> for SdkError<E, R>
impl<E, R> From<BuildError> for SdkError<E, R>
Source§fn from(value: BuildError) -> SdkError<E, R>
fn from(value: BuildError) -> SdkError<E, R>
Converts to this type from the input type.
Source§impl From<DateTimeFormatError> for BuildError
impl From<DateTimeFormatError> for BuildError
Source§fn from(err: DateTimeFormatError) -> BuildError
fn from(err: DateTimeFormatError) -> BuildError
Converts to this type from the input type.
Source§impl From<SerializationError> for BuildError
impl From<SerializationError> for BuildError
Source§fn from(err: SerializationError) -> BuildError
fn from(err: SerializationError) -> BuildError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BuildError
impl !RefUnwindSafe for BuildError
impl Send for BuildError
impl Sync for BuildError
impl Unpin for BuildError
impl !UnwindSafe for BuildError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.