Add operation.error support to notifyOnException()