Class RegoCompilationException
- Namespace
- OpaDotNet.Compilation.Abstractions
- Assembly
- OpaDotNet.Compilation.Abstractions.dll
The exception that is thrown when OPA policy compilation fails.
public class RegoCompilationException : Exception, ISerializable
- Inheritance
-
RegoCompilationException
- Implements
- Inherited Members
Constructors
RegoCompilationException(string?)
Initializes a new instance of the RegoCompilationException.
public RegoCompilationException(string? message)
Parameters
messagestringThe message that describes the error.
RegoCompilationException(string, string?)
Initializes a new instance of the RegoCompilationException.
public RegoCompilationException(string sourceFile, string? message)
Parameters
sourceFilestringSource file that caused the current exception.
messagestringThe message that describes the error.
RegoCompilationException(string, string?, Exception?)
Initializes a new instance of the RegoCompilationException.
public RegoCompilationException(string sourceFile, string? message, Exception? innerException)
Parameters
sourceFilestringSource file that caused the current exception.
messagestringThe message that describes the error.
innerExceptionExceptionThe exception that is the cause of the current exception.
Properties
SourceFile
Source file that caused the current exception.
public string? SourceFile { get; }