Refactored API exception handling in processors