Class CelValidationException

  • All Implemented Interfaces:
    java.io.Serializable

    public final class CelValidationException
    extends CelException
    Base class for all checked exceptions explicitly thrown by the library during parsing.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.google.common.collect.ImmutableList<CelIssue> getErrors()
      Returns a list of CelIssue with error severity that occurred during validation.
      CelSource getSource()
      Returns the CelSource that was being validated.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CelValidationException

        public CelValidationException​(CelSource source,
                                      java.lang.Iterable<CelIssue> errors)
    • Method Detail

      • getSource

        public CelSource getSource()
        Returns the CelSource that was being validated.
      • getErrors

        public com.google.common.collect.ImmutableList<CelIssue> getErrors()
        Returns a list of CelIssue with error severity that occurred during validation.