use thiserror::Error;
pub mod allocations_table_v1;
mod memory_mapped_vmo;
pub mod resources_table_v1;
pub mod stack_trace_compression;
#[derive(Debug, Eq, Error, PartialEq)]
pub enum Error {
#[error("The provided memory region is too small")]
BufferTooSmall,
#[error("The provided memory region is too big")]
BufferTooBig,
#[error("Operation failed due to lack of space")]
OutOfSpace,
#[error("Operation failed because the provided input is not valid")]
InvalidInput,
#[error("System call failed: {}", .0)]
SyscallFailed(#[from] zx::Status),
}