marie-ai icon indicating copy to clipboard operation
marie-ai copied to clipboard

Inconsistent error handling and propagation

Open gregbugaj opened this issue 1 year ago • 0 comments

Currently Processors will log and possibly rethrow base Exception , this needs to be standardized across all processors and specific Exception needs to be thrown.

Example :

try:
    failedOp()
except Exception  as e:
      if silence_exceptions:
          self.logger.warning(
              "Failed OP ", exc_info=1
          )
      else:
          raise FrameFailedException(
              "Failed op exception"
          ) from e

gregbugaj avatar May 19 '23 12:05 gregbugaj