generated boilerplate code in processors for error handling