fix ruby exception creation on iOS Common API