def getExceptionClass(errorCode):
    classMap = {}
    for name, class_ in inspect.getmembers(sys.modules[__name__]):
        if inspect.isclass(class_) and issubclass(class_, BaseServerException):
            classMap[class_.getErrorCode()] = class_
    return classMap[errorCode]
Converts the specified error code into the corresponding class object.
dataset/ETHPy150Open ga4gh/server/ga4gh/exceptions.py/getExceptionClass