[ https://issues.apache.org/jira/browse/SYNCOPE-280?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13557319#comment-13557319 ]
Andrei Shakirin commented on SYNCOPE-280: ----------------------------------------- InvalidPolicyType will be also inherited from RuntimeException > Update some checked exceptions to runtime ones > ---------------------------------------------- > > Key: SYNCOPE-280 > URL: https://issues.apache.org/jira/browse/SYNCOPE-280 > Project: Syncope > Issue Type: Improvement > Reporter: Andrei Shakirin > Assignee: Andrei Shakirin > > Accordingly Java Best Practices checked exceptions should be used only for > conditions from which the caller can reasonably be expected to recover. > Runtime exceptions should be used for preconditions violation and for > programming errors. > Candidates for checked exceptions are: > - InvalidSearchConditionException > - NotFoundException > Candidates for runtime exceptions: > - all Validation exceptions inherited from > javax.validation.ValidationException > - MissingConfKeyException > - AccountPolicyException > - PasswordPolicyException > - PolicyEnforceException > - IncompatiblePolicyException > - UnauthorizedRoleException > - PropagationException > - ReportException > - WorkflowException -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira