replaced code for throwing C++ standard exceptions with AsuraException.

AsuraException has useful functions such as showing line number, source
file name and stack trace etc. So the use of it is the coding policy of
this project.

The lines replaced was written before AsuraException was introduced.