The attached patch improve the cdk.layout.TemplateHandler loadTemplates() function to be less susceptible to exceptions.
Previously, any exception at anytime during template loading would cause all hope to be abandoned and template-loading to terminate.
With the attached improvements, file-read problems are handled on a per-template basis, so that even with a failure of one template, the others will still be loaded. (or rather: attempt to be loaded)
This also removes the (very ugly) "catch (Exception ex)" statement. One should never catch the root exception.
Log in to post a comment.