The ModelFactory instantiates Sling Model classes similar to #adaptTo but will throw an exception in case
instantiation fails for some reason.
Exception which is triggered whenever a Sling Model could not be
instantiated because it could not be adapted from the given adaptable.
Thrown in case the given model type could not be validated through the model validation.
Exception which is used whenever one element (field, method or constructor) could not be set.
Exception which is triggered whenever a Sling Model cannot be instantiated
due to some missing elements (i.e.
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.
Exception which is triggered, whenever the post-construct method has thrown an exception.
Thrown in case an validation could not be performed for the given model.