use exception as metric in cloudwatch