using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Valg.EVA.Skanning.Services.Security
{
    
    
    
    
    
    
    [Serializable]
    public class ImpersonationException : ApplicationException
	{
		
		
		
		
		public ImpersonationException(Win32Exception win32Exception)
			: base(win32Exception.Message, win32Exception)
		{
			
		}

		
		
		
		public int ErrorCode => ((Win32Exception)InnerException).ErrorCode;

		
		
		
		public int NativeErrorCode => ((Win32Exception)InnerException).NativeErrorCode;
	}
}

