Added error handler interface for code patterns