1 // Copyright © 2021-present 650 Industries, Inc. (aka Expo) 2 3 #include "Exceptions.h" 4 5 namespace jni = facebook::jni; 6 7 namespace expo { 8 9 jni::local_ref<CodedException> CodedException::create(const std::string &message) { 10 return CodedException::newInstance(jni::make_jstring(message)); 11 } 12 13 jni::local_ref<JavaScriptEvaluateException> JavaScriptEvaluateException::create( 14 const std::string &message, 15 const std::string &jsStack 16 ) { 17 return JavaScriptEvaluateException::newInstance( 18 jni::make_jstring(message), 19 jni::make_jstring(jsStack) 20 ); 21 } 22 } // namespace expo 23