pub enum DissolveError {
Io(Error),
Parse {
file: SourcePath,
message: String,
source: Option<Box<dyn Error + Send + Sync>>,
},
TypeIntrospection(TypeIntrospectionError),
Migration {
module: ModuleName,
message: String,
},
Config(String),
InvalidInput(String),
NotImplemented(String),
Internal(String),
}Expand description
The main error type for all dissolve operations
Variants§
Io(Error)
Parse
TypeIntrospection(TypeIntrospectionError)
Migration
Config(String)
InvalidInput(String)
NotImplemented(String)
Internal(String)
Implementations§
Source§impl DissolveError
impl DissolveError
Sourcepub fn parse_error(
file: SourcePath,
message: impl Into<String>,
source: Option<Box<dyn Error + Send + Sync>>,
) -> Self
pub fn parse_error( file: SourcePath, message: impl Into<String>, source: Option<Box<dyn Error + Send + Sync>>, ) -> Self
Create a parse error
Sourcepub fn migration_error(module: ModuleName, message: impl Into<String>) -> Self
pub fn migration_error(module: ModuleName, message: impl Into<String>) -> Self
Create a migration error
Sourcepub fn config_error(message: impl Into<String>) -> Self
pub fn config_error(message: impl Into<String>) -> Self
Create a configuration error
Sourcepub fn invalid_input(message: impl Into<String>) -> Self
pub fn invalid_input(message: impl Into<String>) -> Self
Create an invalid input error
Sourcepub fn not_implemented(feature: impl Into<String>) -> Self
pub fn not_implemented(feature: impl Into<String>) -> Self
Create a not implemented error
Trait Implementations§
Source§impl Debug for DissolveError
impl Debug for DissolveError
Source§impl Display for DissolveError
impl Display for DissolveError
Source§impl Error for DissolveError
impl Error for DissolveError
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<Error> for DissolveError
impl From<Error> for DissolveError
Source§impl From<TypeIntrospectionError> for DissolveError
impl From<TypeIntrospectionError> for DissolveError
Source§fn from(source: TypeIntrospectionError) -> Self
fn from(source: TypeIntrospectionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DissolveError
impl !RefUnwindSafe for DissolveError
impl Send for DissolveError
impl Sync for DissolveError
impl Unpin for DissolveError
impl UnsafeUnpin for DissolveError
impl !UnwindSafe for DissolveError
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