namespace NubLang.Diagnostics;

public class CompileException : Exception
{
    public Diagnostic Diagnostic { get; }

    public CompileException(Diagnostic diagnostic) : base(diagnostic.Message)
    {
        Diagnostic = diagnostic;
    }
}