Class PolicyValidationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.elasticsearch.entitlement.runtime.policy.PolicyValidationException
All Implemented Interfaces:
Serializable

public class PolicyValidationException extends RuntimeException
This exception is used to track validation errors thrown during the construction of entitlements. By using this instead of other exception types the policy parser is able to wrap this exception with a line/character number for additional useful error information.
See Also:
  • Constructor Details

    • PolicyValidationException

      public PolicyValidationException(String message)
    • PolicyValidationException

      public PolicyValidationException(String message, Throwable cause)