pub enum Error {
Show 18 variants
Base(Box<ErrorContext>),
Initialization(Box<ErrorContext>),
UnsupportedRuntime(Box<ErrorContext>),
WebhookVerification(Box<ErrorContext>),
InvalidSource(Box<SourceContext>),
RemoteFetch(Box<SourceContext>),
RemoteFetchTimeout(Box<SourceContext>),
RemoteFetchTooLarge(Box<SourceContext>),
Api(Box<ApiContext>),
Auth(Box<ApiContext>),
Validation(Box<ApiContext>),
RateLimit(Box<RateLimitContext>),
InsufficientCredits(Box<CreditsContext>),
JobFailed(Box<JobContext>),
JobCanceled(Box<JobContext>),
Timeout(Box<ErrorContext>),
RequestAborted(Box<ErrorContext>),
Stream(Box<StreamContext>),
}Expand description
Shared SDK error type and result alias. Typed error returned by all public SDK operations.
Variants§
Base(Box<ErrorContext>)
Generic SDK error.
Initialization(Box<ErrorContext>)
Client initialization or configuration error.
UnsupportedRuntime(Box<ErrorContext>)
Unsupported runtime capability error.
WebhookVerification(Box<ErrorContext>)
Webhook signature verification error.
InvalidSource(Box<SourceContext>)
Invalid local source configuration error.
RemoteFetch(Box<SourceContext>)
Remote source fetch error.
RemoteFetchTimeout(Box<SourceContext>)
Remote source fetch timeout error.
RemoteFetchTooLarge(Box<SourceContext>)
Remote source exceeded the upload size limit.
Api(Box<ApiContext>)
Generic API error.
Auth(Box<ApiContext>)
Authentication or authorization API error.
Validation(Box<ApiContext>)
API validation error.
RateLimit(Box<RateLimitContext>)
API rate limit error.
InsufficientCredits(Box<CreditsContext>)
API insufficient credits error.
JobFailed(Box<JobContext>)
Terminal job failure error.
JobCanceled(Box<JobContext>)
Terminal job cancellation error.
Timeout(Box<ErrorContext>)
SDK-enforced timeout error.
RequestAborted(Box<ErrorContext>)
Caller-initiated request cancellation error.
Stream(Box<StreamContext>)
Polling or streaming helper error.
Implementations§
Source§impl ConduitError
impl ConduitError
Sourcepub fn request_id(&self) -> Option<&str>
pub fn request_id(&self) -> Option<&str>
Returns the API request identifier, when available.
Sourcepub fn invalid_webhook_payload(message: impl Into<String>) -> Self
pub fn invalid_webhook_payload(message: impl Into<String>) -> Self
Creates an error used when a webhook payload is malformed after signature verification.
Trait Implementations§
Source§impl Debug for ConduitError
impl Debug for ConduitError
Source§impl Display for ConduitError
impl Display for ConduitError
Source§impl Error for ConduitError
impl Error for ConduitError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ConduitError
impl !RefUnwindSafe for ConduitError
impl Send for ConduitError
impl Sync for ConduitError
impl Unpin for ConduitError
impl UnsafeUnpin for ConduitError
impl !UnwindSafe for ConduitError
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> 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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.