Class ModelClassException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.sling.models.factory.ModelClassException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
PostConstructException

@ProviderType public class ModelClassException extends RuntimeException
Exception which is triggered when the Model class could not be instantiated due to not having a model annotation, some reflection error, invalid constructors or because some exception within the post construct method was triggered.
See Also:
  • Constructor Details

    • ModelClassException

      public ModelClassException(String message)
    • ModelClassException

      public ModelClassException(String message, Throwable e)