Enum daml_lf::DamlLfError
source · [−]pub enum DamlLfError {
DamlLfParseError(DecodeError),
DarParseError(String),
DamlLfConvertError(DamlLfConvertError),
IoError(Error),
UnknownVersion(String),
UnsupportedVersion(String),
}Expand description
Represents Daml-LF errors.
Variants
DamlLfParseError(DecodeError)
DarParseError(String)
DamlLfConvertError(DamlLfConvertError)
IoError(Error)
UnknownVersion(String)
UnsupportedVersion(String)
Implementations
sourceimpl DamlLfError
impl DamlLfError
pub fn new_dar_parse_error(error: impl Into<String>) -> Self
pub fn new_unknown_version(version: impl Into<String>) -> Self
pub fn new_unsupported_version(version: impl Into<String>) -> Self
Trait Implementations
sourceimpl Debug for DamlLfError
impl Debug for DamlLfError
sourceimpl Display for DamlLfError
impl Display for DamlLfError
sourceimpl Error for DamlLfError
impl Error for DamlLfError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<DecodeError> for DamlLfError
impl From<DecodeError> for DamlLfError
sourcefn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Performs the conversion.
sourceimpl From<ScanError> for DamlLfError
impl From<ScanError> for DamlLfError
Auto Trait Implementations
impl !RefUnwindSafe for DamlLfError
impl Send for DamlLfError
impl Sync for DamlLfError
impl Unpin for DamlLfError
impl !UnwindSafe for DamlLfError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more