Setup custom exception class to be independent of std exception
Replaced all uses of runtime_error with custom exception class