replaced invalid_argument into AsuraException.