errorHandler
* feat: Allow to pass `errorHandler` as record option * add docs * Apply formatting changes