Enum tskit::error::TskitError [−][src]
pub enum TskitError { ValueError { got: String, expected: String, }, IndexError, NotTrackingSamples, ErrorCode { code: i32, }, MetadataError { value: MetadataError, }, }
Variants
Used when bad input is encountered.
Used when array access is out of range. Typically, this is used when accessing arrays allocated on the C side.
Raised when samples are requested from
crate::Tree
objects, but sample lists are
not being updated.
Wrapper around tskit C API error codes.
Show fields
Fields of ErrorCode
code: i32
A redirection of crate::metadata::MetadataError
Show fields
Fields of MetadataError
value: MetadataError
The redirected error
Trait Implementations
impl Debug for TskitError
[src]
impl Debug for TskitError
[src]impl Display for TskitError
[src]
impl Display for TskitError
[src]impl Error for TskitError
[src]
impl Error for TskitError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
impl From<MetadataError> for TskitError
[src]
impl From<MetadataError> for TskitError
[src]fn from(source: MetadataError) -> Self
[src]
fn from(source: MetadataError) -> Self
[src]Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for TskitError
impl !Send for TskitError
impl !Sync for TskitError
impl Unpin for TskitError
impl !UnwindSafe for TskitError
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more