summaryrefslogtreecommitdiffstats
path: root/third_party/rust/minidump-writer/src/windows/errors.rs
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/rust/minidump-writer/src/windows/errors.rs')
-rw-r--r--third_party/rust/minidump-writer/src/windows/errors.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/third_party/rust/minidump-writer/src/windows/errors.rs b/third_party/rust/minidump-writer/src/windows/errors.rs
new file mode 100644
index 0000000000..a2ba6c9b66
--- /dev/null
+++ b/third_party/rust/minidump-writer/src/windows/errors.rs
@@ -0,0 +1,13 @@
+#[derive(Debug, thiserror::Error)]
+pub enum Error {
+ #[error(transparent)]
+ Io(#[from] std::io::Error),
+ #[error(transparent)]
+ Scroll(#[from] scroll::Error),
+ #[error("Failed to open thread")]
+ ThreadOpen(#[source] std::io::Error),
+ #[error("Failed to suspend thread")]
+ ThreadSuspend(#[source] std::io::Error),
+ #[error("Failed to get thread context")]
+ ThreadContext(#[source] std::io::Error),
+}