Hermod
A cross-platform, modular and fully GDPR-compliant email archival solution!
Loading...
Searching...
No Matches
NotAPluginException.cs
Go to the documentation of this file.
1using System;
2
4
8 public class NotAPluginException: Exception {
9
10
11 public NotAPluginException(FileInfo offendingFile): base("Attempted to load malformed or incompatible file type!") {
12 OffendingFile = offendingFile;
13 }
14
18 public FileInfo OffendingFile { get; }
19
20 public override string ToString() {
21 return $"{ Message }\nOffending file: { OffendingFile.FullName }";
22 }
23 }
24}
25
Exception class that is thrown when an attempt is made to load a plugin which is not in an assembly.
FileInfo OffendingFile
The file that caused this error.