Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Tip

Basic error handling concept is well-documented in Apache Camel.


Exceptions hierarchy

All CleverBus exceptions OpenHub framework exceptions are in package org.openhubframework.cleverbusopenhub.api.exception:

  • IntegrationException: parent Exception for all CleverBus exceptionsOpenHub framework exceptions
    • LockFailureException: unsuccessful getting lock for the record from DB (most often it means that another process was faster and acquired lock before)
    • MultipleDataFoundException: one record was expected but more records were found
    • NoDataFoundException: at least one records was expected but no record was found
    • ThrottlingExceededException: this exception is thrown when throttling limits were exceeded
    • StoppingException: when CleverBus is OpenHub is in stopping mode then this exception will be thrown when new requests arrive
    • ValidationIntegrationException: input data are not valid
      • IllegalDataException: wrong data

...

Basic algorithm of error handling is implemented in parent class of routes - org.cleverbusopenhubframework.openhub.api.route.AbstractBasicRoute.

...