Uploaded image for project: 'Syncope'
  1. Syncope
  2. SYNCOPE-280

Update some checked exceptions to runtime ones

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1.0
    • Component/s: None
    • Labels:
      None

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              ashakirin Andrei Shakirin
              Reporter:
              ashakirin Andrei Shakirin
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: