Enum aws_smithy_http::operation::BuildError
source · [−]#[non_exhaustive]
pub enum BuildError {
InvalidField {
field: &'static str,
details: String,
},
MissingField {
field: &'static str,
details: &'static str,
},
SerializationError(SerializationError),
InvalidUri {
uri: String,
err: InvalidUri,
message: Cow<'static, str>,
},
Other(Box<dyn Error + Send + Sync + 'static>),
}
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)
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
InvalidField
A field contained an invalid value
MissingField
A field was missing
SerializationError(SerializationError)
The serializer could not serialize the input
InvalidUri
The serializer did not produce a valid URI
This typically indicates that a field contained invalid characters.
Other(Box<dyn Error + Send + Sync + 'static>)
An error occurred request construction
Trait Implementations
sourceimpl Debug for BuildError
impl Debug for BuildError
sourceimpl Display for BuildError
impl Display for BuildError
sourceimpl Error for BuildError
impl Error for BuildError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<DateTimeFormatError> for BuildError
impl From<DateTimeFormatError> for BuildError
sourcefn from(err: DateTimeFormatError) -> Self
fn from(err: DateTimeFormatError) -> Self
Converts to this type from the input type.
sourceimpl From<SerializationError> for BuildError
impl From<SerializationError> for BuildError
sourcefn from(err: SerializationError) -> Self
fn from(err: SerializationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for BuildError
impl Send for BuildError
impl Sync for BuildError
impl Unpin for BuildError
impl !UnwindSafe for BuildError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more