encapsulate error handler get/set