pub enum TranscriptionError {
User(UserError),
Environment(EnvironmentError),
Provider(ProviderError),
Internal(String),
}Expand description
Top-level error type used across the core library and CLI.
Prefer the AurumError alias in new code.
Variants§
Implementations§
Source§impl TranscriptionError
impl TranscriptionError
Sourcepub fn error_category(&self) -> ErrorCategory
pub fn error_category(&self) -> ErrorCategory
Stable semantic category (JOE-1611).
Sourcepub fn exit_code(&self) -> i32
pub fn exit_code(&self) -> i32
Suggested process exit code.
1 internal · 2 user/input · 3 environment · 4 provider · 5 cancelled · 6 deadline · 7 overload
pub fn internal(msg: impl Into<String>) -> Self
Trait Implementations§
Source§impl Debug for TranscriptionError
impl Debug for TranscriptionError
Source§impl Display for TranscriptionError
impl Display for TranscriptionError
Source§impl Error for TranscriptionError
impl Error for TranscriptionError
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<EnvironmentError> for TranscriptionError
impl From<EnvironmentError> for TranscriptionError
Source§fn from(source: EnvironmentError) -> Self
fn from(source: EnvironmentError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for TranscriptionError
impl From<Error> for TranscriptionError
Source§impl From<ProviderError> for TranscriptionError
impl From<ProviderError> for TranscriptionError
Source§fn from(source: ProviderError) -> Self
fn from(source: ProviderError) -> Self
Converts to this type from the input type.
Source§impl From<UnsupportedCapability> for TranscriptionError
impl From<UnsupportedCapability> for TranscriptionError
Source§fn from(u: UnsupportedCapability) -> Self
fn from(u: UnsupportedCapability) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for TranscriptionError
impl !UnwindSafe for TranscriptionError
impl Freeze for TranscriptionError
impl Send for TranscriptionError
impl Sync for TranscriptionError
impl Unpin for TranscriptionError
impl UnsafeUnpin for TranscriptionError
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>
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>
Converts
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>
Converts
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