Use error interface in the error handler