[DF-4223] add Java exeption for c++ assert