﻿using System;
using System.CodeDom.Compiler;

namespace EducationalMalwareKit.CodeAssembly.Models.Exceptions
{
    public class CodeDomCompilationException : Exception
    {
        public override string Message { get; }
        public CompilerResults Result { get; }
        public new Exception InnerException { get; }

        public CodeDomCompilationException(string message, CompilerResults results, Exception innerException = null) : base(message, innerException)
        {
            Message = message;
            Result = results;
            InnerException = innerException;
        }

    }
}
