Standard exceptions replaced non standard exceptions. [skip ci]