Home
last modified time | relevance | path

Searched refs:exception (Results 1 – 25 of 682) sorted by relevance

12345678910>>...28

/expo/android/expoview/src/main/java/host/exp/exponent/exceptions/
H A DExceptionUtils.kt30 fun exceptionToErrorMessage(exception: Exception): ExponentErrorMessage { in exceptionToErrorMessage()
34 if (exception is ExponentException) { in exceptionToErrorMessage()
36 var message = exception.toString() in exceptionToErrorMessage()
39 if (exception.originalException() != null) { in exceptionToErrorMessage()
46 return ExponentErrorMessage(message, exception.originalExceptionMessage()) in exceptionToErrorMessage()
49 val userErrorMessage = getUserErrorMessage(exception, context) in exceptionToErrorMessage()
57 fun exceptionToErrorHeader(exception: Exception): String? { in exceptionToErrorHeader()
58 if (exception is ManifestException) { in exceptionToErrorHeader()
59 return exception.errorHeader in exceptionToErrorHeader()
65 if (exception is UnknownHostException || exception is ConnectException) { in getUserErrorMessage()
[all …]
/expo/packages/expo-dev-launcher/ios/Errors/
H A DEXDevLauncherUncaughtExceptionHandler.swift25 NSSetUncaughtExceptionHandler { exception in in installHandler()
26 NSLog("DevLauncher tries to handle uncaught exception: %@", exception) in installHandler()
27 NSLog("Stack Trace: %@", exception.callStackSymbols) in installHandler()
29 EXDevLauncherUncaughtExceptionHandler.tryToSaveException(exception) in installHandler()
30 EXDevLauncherUncaughtExceptionHandler.tryToSendExceptionToBundler(exception) in installHandler()
31 EXDevLauncherUncaughtExceptionHandler.defaultHandler?(exception) in installHandler()
40 static func tryToSendExceptionToBundler(_ exception: NSException) { in tryToSendExceptionToBundler()
49 logsManager.deferError(exception: exception) in tryToSendExceptionToBundler()
71 static func tryToSaveException(_ exception: NSException) { in tryToSaveException()
73 registry.storeException(exception) in tryToSaveException()
/expo/packages/expo-branch/android/src/main/java/io/branch/rnbranch/
H A DRNBranchConfig.java56 catch (JSONException exception) { in get()
57 Log.e(TAG, "Error parsing branch.json: " + exception.getMessage()); in get()
69 catch (JSONException exception) { in getDebugMode()
70 Log.e(TAG, "Error parsing branch.json: " + exception.getMessage()); in getDebugMode()
83 catch (JSONException exception) { in getBranchKey()
84 Log.e(TAG, "Error parsing branch.json: " + exception.getMessage()); in getBranchKey()
97 catch (JSONException exception) { in getLiveKey()
98 Log.e(TAG, "Error parsing branch.json: " + exception.getMessage()); in getLiveKey()
111 catch (JSONException exception) { in getTestKey()
124 catch (JSONException exception) { in getUseTestInstance()
[all …]
/expo/packages/expo-updates/android/src/androidTest/java/expo/modules/updates/codesigning/
H A DCertificateChainTest.kt33 val exception = assertFailsWith( in test_RequiresLengthGreaterThanZero() constant
45 val exception = assertFailsWith( in test_ThrowsWhenAnyCertificateIsInvalidDate() constant
57 val exception = assertFailsWith( in test_ThrowsWhenLeafIsNotCodeSigningNoKeyUsage() constant
69 val exception = assertFailsWith( in test_ThrowsWhenLeafIsNotCodeSigningNoCodeSigningExtendedKeyUsage() constant
83 val exception = assertFailsWith( in test_ThrowsChainIsNotValid() constant
89 assertEquals("Certificates do not chain", exception.message) in test_ThrowsChainIsNotValid()
97 val exception = assertFailsWith( in test_ThrowsWhenRootIsNotSelfSigned() constant
103 assertEquals("Root certificate not self-signed", exception.message) in test_ThrowsWhenRootIsNotSelfSigned()
135 val exception = assertFailsWith( in test_ThrowsWhenIntermediateCANotCA() constant
149 val exception = assertFailsWith( in test_ThrowsWhenCAPathLenViolated() constant
[all …]
/expo/packages/expo-modules-test-core/android/src/main/java/expo/modules/test/core/
H A DTestUtils.kt4 import expo.modules.kotlin.exception.CodedException
15 fun assertCodedException(exception: Throwable?) { in assertCodedException()
17 returns() implies (exception is CodedException) in assertCodedException()
20 Assert.assertNotNull("Expected exception, received null", exception) in assertCodedException()
22 if (exception is UndeclaredThrowableException) { in assertCodedException()
29 if (exception !is CodedException) { in assertCodedException()
42 inline fun assertCodedException(exception: Throwable?, block: (exception: CodedException) -> Unit) { in assertCodedException()
46 assertCodedException(exception) in assertCodedException()
47 block(exception) in assertCodedException()
/expo/packages/expo-dev-launcher/android/src/debug/java/expo/modules/devlauncher/launcher/errors/
H A DDevLauncherUncaughtExceptionHandler.kt52 override fun uncaughtException(thread: Thread, exception: Throwable) { in onActivityStarted()
60 Log.e("DevLauncher", "DevLauncher tries to handle uncaught exception.", exception) in onActivityStarted()
61 tryToSaveException(exception) in onActivityStarted()
62 tryToSendExceptionToBundler(exception) in onActivityStarted()
67 DevLauncherAppError(exception.message, exception) in onActivityStarted()
86 defaultUncaughtHandler.uncaughtException(thread, exception) in onActivityStarted()
89 Log.e("UNCAUGHT_EXCEPTION", "exception", exception) // print exception in 'Logcat' tab. in onActivityStarted()
96 private fun tryToSaveException(exception: Throwable) { in tryToSaveException()
99 errorRegistry.storeException(exception) in tryToSaveException()
102 private fun tryToSendExceptionToBundler(exception: Throwable) { in tryToSendExceptionToBundler()
[all …]
/expo/ios/versioned/sdk47/EXFirebaseAnalytics/EXFirebaseAnalytics/
H A DABI47_0_0EXFirebaseAnalytics.m31 @"message": exception.reason,
32 @"code": exception.name,
34 reject(exception.name, exception.reason, error);
73 } @catch (NSException *exception) {
74 [self reject:reject withException:exception];
87 } @catch (NSException *exception) {
88 [self reject:reject withException:exception];
102 } @catch (NSException *exception) {
117 } @catch (NSException *exception) {
133 } @catch (NSException *exception) {
[all …]
/expo/android/versioned-abis/expoview-abi47_0_0/src/main/java/abi47_0_0/expo/modules/kotlin/views/
H A DViewManagerDefinition.kt11 import abi47_0_0.expo.modules.kotlin.exception.CodedException
12 import abi47_0_0.expo.modules.kotlin.exception.UnexpectedException
46 } catch (exception: Throwable) { in setProps()
47 logger.error("❌ Cannot set the '$key' prop on the '${viewType.simpleName}'", exception) in setProps()
51 when (exception) { in setProps()
52 is CodedException -> exception in setProps()
53 else -> UnexpectedException(exception) in setProps()
61 fun handleException(view: View, exception: CodedException) { in handleException()
69 appContext.errorManager?.reportExceptionToLogBox(exception) in handleException()
/expo/android/versioned-abis/expoview-abi48_0_0/src/main/java/abi48_0_0/expo/modules/kotlin/views/
H A DViewManagerDefinition.kt12 import abi48_0_0.expo.modules.kotlin.exception.CodedException in <lambda>()
13 import abi48_0_0.expo.modules.kotlin.exception.UnexpectedException in <lambda>()
51 } catch (exception: Throwable) { in <lambda>()
52 logger.error("❌ Cannot set the '$name' prop on the '${viewType.simpleName}'", exception) in <lambda>()
56 when (exception) { in <lambda>()
57 is CodedException -> exception in <lambda>()
58 else -> UnexpectedException(exception) in <lambda>()
65 fun handleException(view: View, exception: CodedException) { in <lambda>()
73 appContext.errorManager?.reportExceptionToLogBox(exception) in <lambda>()
/expo/packages/expo-modules-core/android/src/test/java/expo/modules/kotlin/records/
H A DRecordTypeValidatorsTest.kt83 …val exception = runCatching { convert(test.getJSObject(), test.recordClass.createType()) }.excepti… in test integration between range validators and record() constant
86 exception.assertNotNull() in test integration between range validators and record()
88 exception.assertNull() in test integration between range validators and record()
131 …val exception = runCatching { convert(test.getJSObject(), test.recordClass.createType()) }.excepti… in test integration between is not empty validator and record() constant
134 exception.assertNotNull() in test integration between is not empty validator and record()
136 exception.assertNull() in test integration between is not empty validator and record()
195 …val exception = runCatching { convert(test.getJSObject(), test.recordClass.createType()) }.excepti… in test integration between size validator and record() constant
198 exception.assertNotNull() in test integration between size validator and record()
200 exception.assertNull() in test integration between size validator and record()
230 exception.assertNotNull() in test integration between regular expression validator and record()
[all …]
/expo/android/versioned-abis/expoview-abi47_0_0/src/main/java/abi47_0_0/expo/modules/updates/logging/
H A DUpdatesLogger.kt84 exception: Exception? = null in <lambda>()
86 error(message, code, null, null, exception) in <lambda>()
94 exception: Exception? = null in <lambda>()
96 logger.error(logEntryString(message, code, LogType.Error, updateId, assetId, exception)) in <lambda>()
102 exception: Exception? = null in <lambda>()
104 fatal(message, code, null, null, exception) in <lambda>()
112 exception: Exception? = null in <lambda>()
114 logger.fatal(logEntryString(message, code, LogType.Fatal, updateId, assetId, exception)) in <lambda>()
131 exception: Exception? = null in <lambda>()
135 val throwable = exception as? Throwable ?: Throwable() in <lambda>()
/expo/android/versioned-abis/expoview-abi49_0_0/src/main/java/abi49_0_0/expo/modules/updates/logging/
H A DUpdatesLogger.kt84 exception: Exception? = null in <lambda>()
86 error(message, code, null, null, exception) in <lambda>()
94 exception: Exception? = null in <lambda>()
96 logger.error(logEntryString(message, code, LogType.Error, updateId, assetId, exception)) in <lambda>()
102 exception: Exception? = null in <lambda>()
104 fatal(message, code, null, null, exception) in <lambda>()
112 exception: Exception? = null in <lambda>()
114 logger.fatal(logEntryString(message, code, LogType.Fatal, updateId, assetId, exception)) in <lambda>()
131 exception: Exception? = null in <lambda>()
135 val throwable = exception as? Throwable ?: Throwable() in <lambda>()
/expo/android/versioned-abis/expoview-abi48_0_0/src/main/java/abi48_0_0/expo/modules/updates/logging/
H A DUpdatesLogger.kt84 exception: Exception? = null in <lambda>()
86 error(message, code, null, null, exception) in <lambda>()
94 exception: Exception? = null in <lambda>()
96 logger.error(logEntryString(message, code, LogType.Error, updateId, assetId, exception)) in <lambda>()
102 exception: Exception? = null in <lambda>()
104 fatal(message, code, null, null, exception) in <lambda>()
112 exception: Exception? = null in <lambda>()
114 logger.fatal(logEntryString(message, code, LogType.Fatal, updateId, assetId, exception)) in <lambda>()
131 exception: Exception? = null in <lambda>()
135 val throwable = exception as? Throwable ?: Throwable() in <lambda>()
/expo/packages/expo-updates/android/src/main/java/expo/modules/updates/logging/
H A DUpdatesLogger.kt84 exception: Exception? = null in <lambda>()
86 error(message, code, null, null, exception) in <lambda>()
94 exception: Exception? = null in <lambda>()
96 logger.error(logEntryString(message, code, LogType.Error, updateId, assetId, exception)) in <lambda>()
102 exception: Exception? = null in <lambda>()
104 fatal(message, code, null, null, exception) in <lambda>()
112 exception: Exception? = null in <lambda>()
114 logger.fatal(logEntryString(message, code, LogType.Fatal, updateId, assetId, exception)) in <lambda>()
131 exception: Exception? = null in <lambda>()
135 val throwable = exception as? Throwable ?: Throwable() in <lambda>()
/expo/packages/expo-notifications/android/src/main/java/expo/modules/notifications/tokens/
H A DPushTokenModule.kt50 val exception = task.exception in <lambda>() constant
51 …REGISTRATION_FAIL_CODE, "Fetching the token failed: ${exception?.message ?: "unknown"}", exception) in <lambda>()
69 val exception = task.exception in <lambda>() constant
70 …FAIL_CODE, "Unregistering for notifications failed: ${exception?.message ?: "unknown"}", exception) in <lambda>()
/expo/packages/expo-modules-core/ios/Swift/
H A DPromise.swift25 if let exception = error as? Exception { in reject() variable
26 rejecter(exception) in reject()
44 case .failure(let exception): in settle<ValueType, ExceptionType: Exception>()
45 reject(exception) in settle<ValueType, ExceptionType: Exception>()
/expo/ios/versioned/sdk47/ExpoModulesCore/ios/Swift/
H A DPromise.swift25 if let exception = error as? Exception { in reject() variable
26 rejecter(exception) in reject()
44 case .failure(let exception): in settle<ValueType, ExceptionType: Exception>()
45 reject(exception) in settle<ValueType, ExceptionType: Exception>()
/expo/ios/versioned/sdk48/ExpoModulesCore/ios/Swift/
H A DPromise.swift25 if let exception = error as? Exception { in reject() variable
26 rejecter(exception) in reject()
44 case .failure(let exception): in settle<ValueType, ExceptionType: Exception>()
45 reject(exception) in settle<ValueType, ExceptionType: Exception>()
/expo/ios/versioned/sdk49/ExpoModulesCore/ios/Swift/
H A DPromise.swift25 if let exception = error as? Exception { in reject() variable
26 rejecter(exception) in reject()
44 case .failure(let exception): in settle<ValueType, ExceptionType: Exception>()
45 reject(exception) in settle<ValueType, ExceptionType: Exception>()
/expo/packages/expo-modules-core/android/src/main/java/expo/modules/kotlin/views/
H A DViewManagerWrapperDelegate.kt10 import expo.modules.kotlin.exception.OnViewDidUpdatePropsException in <lambda>()
11 import expo.modules.kotlin.exception.exceptionDecorator in <lambda>()
12 import expo.modules.kotlin.exception.toCodedException in <lambda>()
45 } catch (exception: Throwable) { in <lambda>()
52 val codedException = exception.toCodedException() in <lambda>()
77 } catch (exception: Throwable) { in <lambda>()
84 val codedException = exception.toCodedException() in <lambda>()
101 } catch (exception: Throwable) { in <lambda>()
108 val codedException = exception.toCodedException() in <lambda>()
/expo/packages/expo-modules-core/android/src/test/java/expo/modules/kotlin/exception/
H A DCodedExceptionTest.kt1 package expo.modules.kotlin.exception
11 val exception = ModuleNotFoundException() in should be able to infer code from class name() constant
13 Truth.assertThat(exception.code).isEqualTo("ERR_MODULE_NOT_FOUND") in should be able to infer code from class name()
/expo/android/versioned-abis/expoview-abi49_0_0/src/main/java/abi49_0_0/expo/modules/kotlin/views/
H A DViewManagerWrapperDelegate.kt10 import abi49_0_0.expo.modules.kotlin.exception.OnViewDidUpdatePropsException in <lambda>()
11 import abi49_0_0.expo.modules.kotlin.exception.exceptionDecorator in <lambda>()
12 import abi49_0_0.expo.modules.kotlin.exception.toCodedException in <lambda>()
45 } catch (exception: Throwable) { in <lambda>()
52 val codedException = exception.toCodedException() in <lambda>()
77 } catch (exception: Throwable) { in <lambda>()
84 val codedException = exception.toCodedException() in <lambda>()
101 } catch (exception: Throwable) { in <lambda>()
108 val codedException = exception.toCodedException() in <lambda>()
/expo/packages/create-expo/src/
H A Dlog.ts10 export function exception(e: Error): void { function
22 exception(message);
40 exception, constant
/expo/ios/versioned-react-native/ABI49_0_0/ReactNative/React/CxxModule/
H A DABI49_0_0RCTCxxUtils.mm43 static NSError *errorWithException(const std::exception &e)
57 } catch (const std::exception &e) {
76 } @catch (NSException *exception) {
77 return ABI49_0_0RCTErrorWithNSException(exception);
78 } @catch (id exception) {
79 // This will catch any other ObjC exception, but no C++ exceptions
82 } catch (const std::exception &ex) {
87 return ABI49_0_0RCTErrorWithMessage(@"non-std C++ exception");
/expo/ios/versioned-react-native/ABI48_0_0/ReactNative/React/CxxModule/
H A DABI48_0_0RCTCxxUtils.mm43 static NSError *errorWithException(const std::exception &e)
57 } catch (const std::exception &e) {
76 } @catch (NSException *exception) {
77 return ABI48_0_0RCTErrorWithNSException(exception);
78 } @catch (id exception) {
79 // This will catch any other ObjC exception, but no C++ exceptions
82 } catch (const std::exception &ex) {
87 return ABI48_0_0RCTErrorWithMessage(@"non-std C++ exception");

12345678910>>...28