• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

me-viper / OpaDotNet / 28654219331

03 Jul 2026 10:19AM UTC coverage: 85.369% (-2.3%) from 87.653%
28654219331

push

github

web-flow
ci: Change compiler for tests

4586 of 5372 relevant lines covered (85.37%)

0.85 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

66.67
/src/Compilation.Abstractions/src/RegoCompilationException.cs
1
namespace OpaDotNet.Compilation.Abstractions;
2

3
/// <summary>
4
/// The exception that is thrown when OPA policy compilation fails.
5
/// </summary>
6
[PublicAPI]
7
public class RegoCompilationException : Exception
8
{
9
    /// <summary>
10
    /// Source file that caused the current exception.
11
    /// </summary>
12
    public string? SourceFile { get; private set; }
1✔
13

14
    /// <summary>
15
    /// Initializes a new instance of the <see cref="RegoCompilationException"/>.
16
    /// </summary>
17
    /// <param name="message">The message that describes the error.</param>
18
    public RegoCompilationException(string? message) : base(message)
1✔
19
    {
20
    }
1✔
21

22
    /// <summary>
23
    /// Initializes a new instance of the <see cref="RegoCompilationException"/>.
24
    /// </summary>
25
    /// <param name="sourceFile">Source file that caused the current exception.</param>
26
    /// <param name="message">The message that describes the error.</param>
27
    public RegoCompilationException(string sourceFile, string? message) : base(message)
×
28
    {
29
        SourceFile = sourceFile;
×
30
    }
×
31

32
    /// <summary>
33
    /// Initializes a new instance of the <see cref="RegoCompilationException"/>.
34
    /// </summary>
35
    /// <param name="sourceFile">Source file that caused the current exception.</param>
36
    /// <param name="message">The message that describes the error.</param>
37
    /// <param name="innerException">The exception that is the cause of the current exception.</param>
38
    public RegoCompilationException(string sourceFile, string? message, Exception? innerException) : base(message, innerException)
1✔
39
    {
40
        SourceFile = sourceFile;
1✔
41
    }
1✔
42
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc