aboutsummaryrefslogtreecommitdiff
path: root/ChocolArm64/Exceptions/VmmAccessViolationException.cs
blob: a557502e50834a0367e4be94b276d72523c4d239 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)) { }
    }
}