Uploaded image for project: 'Apache Onami'
  1. Apache Onami
  2. ONAMI-88

Consistent policy for exception handling

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: configuration-6.3.0
    • Fix Version/s: configuration-6.3.0
    • Component/s: configuration
    • Labels:
      None

      Description

      No consistent policy for exception handling - for example SQLTimestampConverter catches Throwable and rethrows it as ProvisionException but CharsetConverter do not catch anything at all. Should we catch at all or Guice handles this itself?

      I guess we should rethrow only checked exceptions. Also no need to catch Errors in such places in any case (catch Exception vs Throwable).

        Attachments

          Activity

            People

            • Assignee:
              ash2k Mikhail Mazursky
              Reporter:
              ash2k Mikhail Mazursky
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: