summaryrefslogtreecommitdiffstats
path: root/third_party/rust/minidump-writer/src/mac/errors.rs
blob: 96ddb88cad047866a10022c0dfbb7aa6368c5a30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
use thiserror::Error;

#[derive(Debug, Error)]
pub enum WriterError {
    #[error(transparent)]
    TaskDumpError(#[from] crate::mac::task_dumper::TaskDumpError),
    #[error("Failed to write to memory")]
    MemoryWriterError(#[from] crate::mem_writer::MemoryWriterError),
    #[error("Failed to write to file")]
    FileWriterError(#[from] crate::dir_section::FileWriterError),
    #[error("Attempted to write an exception stream with no crash context")]
    NoCrashContext,
}