do not use exceptions in native code, they will not be supported soon