aboutsummaryrefslogtreecommitdiff
path: root/stockton-skeleton/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'stockton-skeleton/src/error.rs')
-rw-r--r--stockton-skeleton/src/error.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/stockton-skeleton/src/error.rs b/stockton-skeleton/src/error.rs
index 1f57892..6d7e7ad 100644
--- a/stockton-skeleton/src/error.rs
+++ b/stockton-skeleton/src/error.rs
@@ -15,6 +15,9 @@ pub enum LockPoisoned {
#[error("Other lock poisoned")]
Other,
+
+ #[error("Memory pool lock poisoned")]
+ MemoryPool,
}
/// Indicates the given property has no acceptable values
@@ -43,6 +46,15 @@ pub enum EnvironmentError {
#[error("No suitable queues")]
NoQueues,
+
+ #[error("Memory pool missing")]
+ MemoryPoolMissing,
+}
+
+#[derive(Debug, Error)]
+pub enum UsageError {
+ #[error("Attempt to create mappable memory block from non-mappable memory")]
+ NonMappableMemory,
}
/// Indicates an issue with the level object being used