Enum tskit::error::TskitError [−][src]
pub enum TskitError {
ValueError {
got: String,
expected: String,
},
IndexError,
NotTrackingSamples,
ErrorCode {
code: i32,
},
MetadataError {
value: MetadataError,
},
}
Variants
ValueError
Used when bad input is encountered.
IndexError
Used when array access is out of range. Typically, this is used when accessing arrays allocated on the C side.
NotTrackingSamples
Raised when samples are requested from
crate::Tree
objects, but sample lists are
not being updated.
ErrorCode
Fields
code: i32
Wrapper around tskit C API error codes.
MetadataError
Fields
value: MetadataError
The redirected error
A redirection of crate::metadata::MetadataError
Trait Implementations
Performs the conversion.