OEConnection interview question

How would you centralize error handling in a large-scale application?