Enable CA1064 and fix noncompliance

Exception classes should be public
This commit is contained in:
YoshiRulz 2022-03-08 10:41:33 +10:00
parent 191f1f3020
commit d8ce0e6177
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
2 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@
<Rule Id="CA1063" Action="Hidden" />
<!-- Exceptions should be public -->
<Rule Id="CA1064" Action="Hidden" />
<Rule Id="CA1064" Action="Error" />
<!-- Do not raise exceptions in unexpected locations -->
<Rule Id="CA1065" Action="Hidden" />

View File

@ -55,7 +55,7 @@ namespace BizHawk.Emulation.DiscSystem
public abstract void Run();
}
internal class DiscJobAbortException : Exception
public sealed class DiscJobAbortException : Exception
{
}
}