aboutsummaryrefslogtreecommitdiff
path: root/ChocolArm64/Exceptions/VmmOutOfMemoryException.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ChocolArm64/Exceptions/VmmOutOfMemoryException.cs')
-rw-r--r--ChocolArm64/Exceptions/VmmOutOfMemoryException.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/ChocolArm64/Exceptions/VmmOutOfMemoryException.cs b/ChocolArm64/Exceptions/VmmOutOfMemoryException.cs
new file mode 100644
index 00000000..c11384da
--- /dev/null
+++ b/ChocolArm64/Exceptions/VmmOutOfMemoryException.cs
@@ -0,0 +1,13 @@
+using System;
+
+namespace ChocolArm64.Exceptions
+{
+ public class VmmOutOfMemoryException : Exception
+ {
+ private const string ExMsg = "Failed to allocate {0} bytes of memory!";
+
+ public VmmOutOfMemoryException() { }
+
+ public VmmOutOfMemoryException(long Size) : base(string.Format(ExMsg, Size)) { }
+ }
+} \ No newline at end of file