Raise exception on any error if user callback is missing

def _defaultErrorHandler(varBinds, **context):
        """Raise exception on any error if user callback is missing"""
        errors = context.get('errors')

        if errors:
            err = errors[-1]
            raise err['error']