#[non_exhaustive]pub struct AthenaErrorBuilder { /* private fields */ }Expand description
A builder for AthenaError.
Implementations§
Source§impl AthenaErrorBuilder
impl AthenaErrorBuilder
Sourcepub fn error_category(self, input: i32) -> Self
pub fn error_category(self, input: i32) -> Self
An integer value that specifies the category of a query failure error. The following list shows the category for each integer value.
1 - System
2 - User
3 - Other
Sourcepub fn set_error_category(self, input: Option<i32>) -> Self
pub fn set_error_category(self, input: Option<i32>) -> Self
An integer value that specifies the category of a query failure error. The following list shows the category for each integer value.
1 - System
2 - User
3 - Other
Sourcepub fn get_error_category(&self) -> &Option<i32>
pub fn get_error_category(&self) -> &Option<i32>
An integer value that specifies the category of a query failure error. The following list shows the category for each integer value.
1 - System
2 - User
3 - Other
Sourcepub fn error_type(self, input: i32) -> Self
pub fn error_type(self, input: i32) -> Self
An integer value that provides specific information about an Athena query error. For the meaning of specific values, see the Error Type Reference in the Amazon Athena User Guide.
Sourcepub fn set_error_type(self, input: Option<i32>) -> Self
pub fn set_error_type(self, input: Option<i32>) -> Self
An integer value that provides specific information about an Athena query error. For the meaning of specific values, see the Error Type Reference in the Amazon Athena User Guide.
Sourcepub fn get_error_type(&self) -> &Option<i32>
pub fn get_error_type(&self) -> &Option<i32>
An integer value that provides specific information about an Athena query error. For the meaning of specific values, see the Error Type Reference in the Amazon Athena User Guide.
Sourcepub fn set_retryable(self, input: Option<bool>) -> Self
pub fn set_retryable(self, input: Option<bool>) -> Self
True if the query might succeed if resubmitted.
Sourcepub fn get_retryable(&self) -> &Option<bool>
pub fn get_retryable(&self) -> &Option<bool>
True if the query might succeed if resubmitted.
Sourcepub fn error_message(self, input: impl Into<String>) -> Self
pub fn error_message(self, input: impl Into<String>) -> Self
Contains a short description of the error that occurred.
Sourcepub fn set_error_message(self, input: Option<String>) -> Self
pub fn set_error_message(self, input: Option<String>) -> Self
Contains a short description of the error that occurred.
Sourcepub fn get_error_message(&self) -> &Option<String>
pub fn get_error_message(&self) -> &Option<String>
Contains a short description of the error that occurred.
Sourcepub fn build(self) -> AthenaError
pub fn build(self) -> AthenaError
Consumes the builder and constructs a AthenaError.
Trait Implementations§
Source§impl Clone for AthenaErrorBuilder
impl Clone for AthenaErrorBuilder
Source§fn clone(&self) -> AthenaErrorBuilder
fn clone(&self) -> AthenaErrorBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AthenaErrorBuilder
impl Debug for AthenaErrorBuilder
Source§impl Default for AthenaErrorBuilder
impl Default for AthenaErrorBuilder
Source§fn default() -> AthenaErrorBuilder
fn default() -> AthenaErrorBuilder
Source§impl PartialEq for AthenaErrorBuilder
impl PartialEq for AthenaErrorBuilder
impl StructuralPartialEq for AthenaErrorBuilder
Auto Trait Implementations§
impl Freeze for AthenaErrorBuilder
impl RefUnwindSafe for AthenaErrorBuilder
impl Send for AthenaErrorBuilder
impl Sync for AthenaErrorBuilder
impl Unpin for AthenaErrorBuilder
impl UnsafeUnpin for AthenaErrorBuilder
impl UnwindSafe for AthenaErrorBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more