Distinguish between transient, recoverable and permanent DB exceptions
This would be useful for message delivery hooks and any other operation that should be retried if the failure is temporary, or cancelled if it's permanent.
This would be useful for message delivery hooks and any other operation that should be retried if the failure is temporary, or cancelled if it's permanent.