cheatah
Class

space::cdf::CdfError

cheatah-space v0.1.0-alpha — Biome Standard 0.6.5-alpha

The exception every malformed-file path raises.

Carries the byte offset as well as the code, because "bad record type" without a location is not actionable on an 8 MB file.

Functions

fn CdfError(ErrorCode code, std::uint64_t offset) #

Construct from a code and the offset the trouble was found at.

Parameters
code

what went wrong.

offset

byte offset into the file.

fn ErrorCode code() const noexcept #
Returns

the error code, for programmatic handling.

fn std::uint64_t offset() const noexcept #
Returns

the byte offset the error was detected at.

Constants & variables

var ErrorCode code_ #
var std::uint64_t offset_ #