DarException makeException(int code, string msg)
Internal: create specific exception instance based on error code.