Some checks failed
		
		
	
	Docs CI / lint-and-preview (push) Has been cancelled
				
			- Implemented PolicyDslValidator with command-line options for strict mode and JSON output. - Created PolicySchemaExporter to generate JSON schemas for policy-related models. - Developed PolicySimulationSmoke tool to validate policy simulations against expected outcomes. - Added project files and necessary dependencies for each tool. - Ensured proper error handling and usage instructions across tools.
		
			
				
	
	
		
			18 lines
		
	
	
		
			435 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			435 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System;
 | |
| using System.Collections.Immutable;
 | |
| 
 | |
| namespace StellaOps.Aoc;
 | |
| 
 | |
| public sealed class AocGuardException : Exception
 | |
| {
 | |
|     public AocGuardException(AocGuardResult result)
 | |
|         : base("AOC guard validation failed.")
 | |
|     {
 | |
|         Result = result ?? throw new ArgumentNullException(nameof(result));
 | |
|     }
 | |
| 
 | |
|     public AocGuardResult Result { get; }
 | |
| 
 | |
|     public ImmutableArray<AocViolation> Violations => Result.Violations;
 | |
| }
 |