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.
Fields of ErrorCode
code: i32
A redirection of crate::metadata::MetadataError
Fields of MetadataError
value: MetadataError
The redirected error
Trait Implementations
Performs the conversion.