Konrad Windszus created SLING-11732:
---------------------------------------
Summary: Introduce createModelFromWrappedRequest(...)
Key: SLING-11732
URL: https://issues.apache.org/jira/browse/SLING-11732
Project: Sling
Issue Type: Improvement
Components: Sling Models
Reporter: Konrad Windszus
Similar to {{ModelFactory.getModelFromWrappedRequest(...)}} there should be a
{{ModelFactory.createModelFromWrappedRequest(...)}}. The former relies on the
{{adaptTo(...)}} pattern which does not emit any useful exception but just
returns {{null}} in case of errors. The {{createModelFromWrappedRequest(...)}}
should use the {{createModel(...)}} method internally and propagate any
exceptions thrown from it.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)