Class ModelValidationException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ModelValidationException
    extends java.lang.RuntimeException
    Resource model validation exception. Indicates the issues with the model.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ModelValidationException​(java.lang.String message, java.util.List<ResourceModelIssue> issues)
      Creates new resource model validation exception with the list of validation issues and the message.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<ResourceModelIssue> getIssues()
      Get validation issues.
      java.lang.String getMessage()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, 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

      • ModelValidationException

        public ModelValidationException​(java.lang.String message,
                                        java.util.List<ResourceModelIssue> issues)
        Creates new resource model validation exception with the list of validation issues and the message.
        Parameters:
        message - message for the exception. The final message returned by getMessage() will contains the message and other information about exception.
        issues - validation issues.
    • Method Detail

      • getIssues

        public java.util.List<ResourceModelIssue> getIssues()
        Get validation issues.
        Returns:
        validation issues.
      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable