Class ComplianceViolationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.cloudforgeci.api.deploy.ComplianceViolationException
All Implemented Interfaces:
Serializable

public final class ComplianceViolationException extends RuntimeException
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: