Enum tskit::error::TskitError [−][src]
pub enum TskitError {
RangeError(&'static str),
ValueError {
got: String,
expected: String,
},
IndexError,
NotTrackingSamples,
ErrorCode {
code: i32,
},
MetadataError {
value: MetadataError,
},
}
Variants
RangeError(&'static str)
Tuple Fields
0: &'static str
Returned when conversion attempts fail
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.