Class GuardRailViolationException
-
- All Implemented Interfaces:
-
java.io.Serializable
public final class GuardRailViolationException extends RuntimeException
Exception thrown when a guardrail detects a critical policy violation.
Critical violations block execution to prevent potentially harmful, inappropriate, or policy-violating content from being processed.
-
-
Constructor Summary
Constructors Constructor Description GuardRailViolationException(String guard, String violation, ValidationSeverity severity)
-
Method Summary
Modifier and Type Method Description final StringgetGuard()final StringgetViolation()final ValidationSeveritygetSeverity()-
Methods inherited from class kotlin.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
GuardRailViolationException
GuardRailViolationException(String guard, String violation, ValidationSeverity severity)
-
-
Method Detail
-
getViolation
final String getViolation()
-
getSeverity
final ValidationSeverity getSeverity()
-
-
-
-