Module error

Source
Expand description

Error handling

Enums§

TskitRustError

Functions§

extract_error_message
Given an instance of TskReturnValue, obtain the tskit error message if there is indeed an error.
get_tskit_error_message
Given a return value from low-level tskit function, obtain the corresponding error message.
panic_on_tskit_error
Takes the return code from a tskit function and panics if the code indicates an error. The error message is included in the panic statement.