Class ComplianceViolationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.cloudforgeci.api.deploy.ComplianceViolationException
- All Implemented Interfaces:
Serializable
Thrown by
CloudForgeSynthesizer.synthesize(DeploymentConfig, Path) when complianceMode=enforce and
cdk-nag found at least one non-suppressed ERROR-level violation. This implements
ComplianceMode.ENFORCE's "blocks CDK synthesis" behavior (see NagReportReader for how findings are collected).
A dedicated type so callers such as a deploy pipeline can distinguish a template compliance failure from an AWS communication error. Carries the structured findings so callers can render them without parsing the message.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionComplianceViolationException(String stackName, List<NagReportReader.ComplianceFinding> findings) -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ComplianceViolationException
public ComplianceViolationException(String stackName, List<NagReportReader.ComplianceFinding> findings)
-
-
Method Details
-
findings
-