Split main project into core,graphics and chocolarm4 subproject (#29)
This commit is contained in:
parent
cb665bb715
commit
62b827f474
257 changed files with 415 additions and 285 deletions
14
ChocolArm64/Exceptions/VmmAccessViolationException.cs
Normal file
14
ChocolArm64/Exceptions/VmmAccessViolationException.cs
Normal file
|
@ -0,0 +1,14 @@
|
|||
using ChocolArm64.Memory;
|
||||
using System;
|
||||
|
||||
namespace ChocolArm64.Exceptions
|
||||
{
|
||||
public class VmmAccessViolationException : Exception
|
||||
{
|
||||
private const string ExMsg = "Address 0x{0:x16} does not have \"{1}\" permission!";
|
||||
|
||||
public VmmAccessViolationException() { }
|
||||
|
||||
public VmmAccessViolationException(long Position, AMemoryPerm Perm) : base(string.Format(ExMsg, Position, Perm)) { }
|
||||
}
|
||||
}
|
13
ChocolArm64/Exceptions/VmmOutOfMemoryException.cs
Normal file
13
ChocolArm64/Exceptions/VmmOutOfMemoryException.cs
Normal file
|
@ -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)) { }
|
||||
}
|
||||
}
|
13
ChocolArm64/Exceptions/VmmPageFaultException.cs
Normal file
13
ChocolArm64/Exceptions/VmmPageFaultException.cs
Normal file
|
@ -0,0 +1,13 @@
|
|||
using System;
|
||||
|
||||
namespace ChocolArm64.Exceptions
|
||||
{
|
||||
public class VmmPageFaultException : Exception
|
||||
{
|
||||
private const string ExMsg = "Tried to access unmapped address 0x{0:x16}!";
|
||||
|
||||
public VmmPageFaultException() { }
|
||||
|
||||
public VmmPageFaultException(long Position) : base(string.Format(ExMsg, Position)) { }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue