summaryrefslogtreecommitdiffstats
path: root/third_party/rust/minidump-writer/src/mac/errors.rs
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/rust/minidump-writer/src/mac/errors.rs')
-rw-r--r--third_party/rust/minidump-writer/src/mac/errors.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/third_party/rust/minidump-writer/src/mac/errors.rs b/third_party/rust/minidump-writer/src/mac/errors.rs
new file mode 100644
index 0000000000..96ddb88cad
--- /dev/null
+++ b/third_party/rust/minidump-writer/src/mac/errors.rs
@@ -0,0 +1,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,
+}