pub enum CoreError {
Show 15 variants
VideoProcessingError(String),
CommentaryError(String),
StorageError(StorageError),
ConfigError(ConfigError),
InvalidInput(String),
Unauthorized,
Forbidden,
NotFound(String),
InternalError(String),
NetworkError(String),
Timeout,
SerializationError(String),
DeserializationError(String),
IoError(String),
JsonError(String),
}Expand description
Core error enumeration
Variants§
VideoProcessingError(String)
CommentaryError(String)
StorageError(StorageError)
ConfigError(ConfigError)
InvalidInput(String)
Forbidden
NotFound(String)
InternalError(String)
NetworkError(String)
Timeout
SerializationError(String)
DeserializationError(String)
IoError(String)
JsonError(String)
Implementations§
Source§impl CoreError
impl CoreError
Sourcepub fn video_processing_error(msg: &str) -> Self
pub fn video_processing_error(msg: &str) -> Self
Create a new VideoProcessingError
Sourcepub fn commentary_error(msg: &str) -> Self
pub fn commentary_error(msg: &str) -> Self
Create a new CommentaryError
Sourcepub fn invalid_input(msg: &str) -> Self
pub fn invalid_input(msg: &str) -> Self
Create a new InvalidInput error
Sourcepub fn internal_error(msg: &str) -> Self
pub fn internal_error(msg: &str) -> Self
Create a new InternalError
Sourcepub fn network_error(msg: &str) -> Self
pub fn network_error(msg: &str) -> Self
Create a new NetworkError
Sourcepub fn serialization_error(msg: &str) -> Self
pub fn serialization_error(msg: &str) -> Self
Create a new SerializationError
Sourcepub fn deserialization_error(msg: &str) -> Self
pub fn deserialization_error(msg: &str) -> Self
Create a new DeserializationError
Sourcepub fn json_error(msg: &str) -> Self
pub fn json_error(msg: &str) -> Self
Create a new JsonError
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CoreError
impl<'de> Deserialize<'de> for CoreError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Error for CoreError
impl Error for CoreError
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<ConfigError> for CoreError
impl From<ConfigError> for CoreError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<StorageError> for CoreError
impl From<StorageError> for CoreError
Source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CoreError
impl RefUnwindSafe for CoreError
impl Send for CoreError
impl Sync for CoreError
impl Unpin for CoreError
impl UnsafeUnpin for CoreError
impl UnwindSafe for CoreError
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