Home
last modified time | relevance | path

Searched refs:e (Results 1 – 25 of 31) sorted by relevance

12

/lifecycle/lifecycle-viewmodel/src/jvmCommonMain/kotlin/androidx/lifecycle/viewmodel/internal/
DJvmViewModelProviders.kt39 } catch (e: NoSuchMethodException) { in createViewModel()
40 throw RuntimeException("Cannot create an instance of $modelClass", e)
41 } catch (e: InstantiationException) {
42 throw RuntimeException("Cannot create an instance of $modelClass", e)
43 } catch (e: IllegalAccessException) {
44 throw RuntimeException("Cannot create an instance of $modelClass", e)
/lifecycle/lifecycle-viewmodel/src/androidUnitTest/kotlin/androidx/lifecycle/
DNewInstanceFactoryTest.kt43 } catch (e: RuntimeException) { in create_withConstructorWithOneArgument_throwsNoSuchMethodException()
44 assertThat(e).hasCauseThat().isInstanceOf<NoSuchMethodException>() in create_withConstructorWithOneArgument_throwsNoSuchMethodException()
45 assertThat(e) in create_withConstructorWithOneArgument_throwsNoSuchMethodException()
58 } catch (e: RuntimeException) { in create_withPrivateConstructor_throwsIllegalAccessException()
59 assertThat(e).hasCauseThat().isInstanceOf<IllegalAccessException>() in create_withPrivateConstructor_throwsIllegalAccessException()
60 assertThat(e) in create_withPrivateConstructor_throwsIllegalAccessException()
73 } catch (e: RuntimeException) { in create_withAbstractConstructor_throwsInstantiationException()
74 assertThat(e).hasCauseThat().isInstanceOf<InstantiationException>() in create_withAbstractConstructor_throwsInstantiationException()
75 assertThat(e) in create_withAbstractConstructor_throwsInstantiationException()
/lifecycle/lifecycle-viewmodel/src/jvmCommonTest/kotlin/androidx/lifecycle/viewmodel/internal/
DDefaultViewModelProviderFactoryTest.kt44 } catch (e: RuntimeException) { in create_withConstructorWithOneArgument_throwsNoSuchMethodException()
45 assertThat(e).hasCauseThat().isInstanceOf<NoSuchMethodException>() in create_withConstructorWithOneArgument_throwsNoSuchMethodException()
46 assertThat(e) in create_withConstructorWithOneArgument_throwsNoSuchMethodException()
59 } catch (e: RuntimeException) { in create_withPrivateConstructor_throwsIllegalAccessException()
60 assertThat(e).hasCauseThat().isInstanceOf<IllegalAccessException>() in create_withPrivateConstructor_throwsIllegalAccessException()
61 assertThat(e) in create_withPrivateConstructor_throwsIllegalAccessException()
74 } catch (e: RuntimeException) { in create_withAbstractConstructor_throwsInstantiationException()
75 assertThat(e).hasCauseThat().isInstanceOf<InstantiationException>() in create_withAbstractConstructor_throwsInstantiationException()
76 assertThat(e) in create_withAbstractConstructor_throwsInstantiationException()
/lifecycle/lifecycle-common/src/jvmMain/kotlin/androidx/lifecycle/
DLifecycling.jvm.kt69 } catch (e: IllegalAccessException) { in <lambda>()
70 throw RuntimeException(e) in <lambda>()
71 } catch (e: InstantiationException) { in <lambda>()
72 throw RuntimeException(e) in <lambda>()
73 } catch (e: InvocationTargetException) { in <lambda>()
74 throw RuntimeException(e) in <lambda>()
98 } catch (e: ClassNotFoundException) { in <lambda>()
100 } catch (e: NoSuchMethodException) { in <lambda>()
102 throw RuntimeException(e) in <lambda>()
/lifecycle/lifecycle-viewmodel/src/nativeTest/kotlin/androidx/lifecycle/viewmodel/internal/
DDefaultViewModelProviderFactoryTest.kt33 } catch (e: UnsupportedOperationException) { in create_throwsUnsupportedOperationException()
34 assertThat(e).hasCauseThat().isNull() in create_throwsUnsupportedOperationException()
35 assertThat(e) in create_throwsUnsupportedOperationException()
/lifecycle/lifecycle-viewmodel/src/commonTest/kotlin/androidx/lifecycle/viewmodel/
DViewModelInitializerTest.kt55 } catch (e: IllegalArgumentException) { in viewModelFactory_withDuplicatedInitializers_throwsException()
56 assertThat(e) in viewModelFactory_withDuplicatedInitializers_throwsException()
70 } catch (e: IllegalArgumentException) { in viewModelFactory_noInitializers_throwsException()
71 assertThat(e) in viewModelFactory_noInitializers_throwsException()
/lifecycle/integration-tests/testapp/src/androidTest/java/androidx/lifecycle/
DSynchronousActivityLifecycleTest.java125 } catch (Exception e) { in testSynchronousCall()
126 throw new Error(e); in testSynchronousCall()
138 } catch (Exception e) { in performStart()
139 throw new Error(e); in performStart()
148 } catch (Exception e) { in performResume()
149 throw new Error(e); in performResume()
165 } catch (Exception e) { in performStop()
166 throw new Error(e); in performStop()
DSimpleAppFullLifecycleTest.java79 } catch (InterruptedException e) { in setup()
80 e.printStackTrace(); in setup()
/lifecycle/lifecycle-viewmodel/src/androidMain/kotlin/androidx/lifecycle/viewmodel/internal/
DViewModelProviderImpl.android.kt35 } catch (e: AbstractMethodError) { in createViewModel()
38 } catch (e: AbstractMethodError) { in createViewModel()
/lifecycle/lifecycle-viewmodel/src/androidMain/kotlin/androidx/lifecycle/
DViewModelProvider.android.kt300 } catch (e: NoSuchMethodException) { in create()
301 throw RuntimeException("Cannot create an instance of $modelClass", e) in create()
302 } catch (e: IllegalAccessException) { in create()
303 throw RuntimeException("Cannot create an instance of $modelClass", e) in create()
304 } catch (e: InstantiationException) { in create()
305 throw RuntimeException("Cannot create an instance of $modelClass", e) in create()
306 } catch (e: InvocationTargetException) { in create()
307 throw RuntimeException("Cannot create an instance of $modelClass", e) in create()
/lifecycle/lifecycle-viewmodel-savedstate/src/androidMain/kotlin/androidx/lifecycle/
DSavedStateViewModelFactory.android.kt258 } catch (e: IllegalAccessException) { in newInstance()
259 throw RuntimeException("Failed to access $modelClass", e) in newInstance()
260 } catch (e: InstantiationException) { in newInstance()
261 throw RuntimeException("A $modelClass cannot be instantiated.", e) in newInstance()
262 } catch (e: InvocationTargetException) { in newInstance()
263 throw RuntimeException("An exception happened in constructor of $modelClass", e.cause) in newInstance()
/lifecycle/lifecycle-viewmodel-savedstate/src/androidInstrumentedTest/kotlin/androidx/lifecycle/viewmodel/savedstate/
DSavedStateFactoryTest.kt97 } catch (e: UnsupportedOperationException) { in testCreateAndroidVMWrongParameterOrder()
98 assertThat(e) in testCreateAndroidVMWrongParameterOrder()
115 } catch (e: RuntimeException) { in testLegacyCreateFailAndroidVM()
131 } catch (e: RuntimeException) {} in testCreateFailAndroidVM()
162 } catch (e: UnsupportedOperationException) {} in testLegacyMethodsWithEmptyConstructor()
167 } catch (e: UnsupportedOperationException) {} in testLegacyMethodsWithEmptyConstructor()
181 } catch (e: UnsupportedOperationException) {} in testLegacyMethodsWithEmptyConstructor()
DSavedStateHandleSupportTest.kt104 } catch (e: IllegalStateException) {} in failWithNoInstallation()
/lifecycle/lifecycle-livedata/src/main/java/androidx/lifecycle/
DMediatorLiveData.java106 Source<S> e = new Source<>(source, onChanged); in addSource() local
107 Source<?> existing = mSources.putIfAbsent(source, e); in addSource()
116 e.plug(); in addSource()
/lifecycle/lifecycle-common/src/jvmMain/java/androidx/lifecycle/
DClassesInfoCache.java75 } catch (NoClassDefFoundError e) { in getDeclaredMethods()
80 + "in your min API level OR use lifecycle:compiler annotation processor.", e); in getDeclaredMethods()
231 } catch (InvocationTargetException e) { in invokeCallback()
232 throw new RuntimeException("Failed to call observer method", e.getCause()); in invokeCallback()
233 } catch (IllegalAccessException e) { in invokeCallback()
234 throw new RuntimeException(e); in invokeCallback()
/lifecycle/lifecycle-viewmodel/src/commonMain/kotlin/androidx/lifecycle/viewmodel/internal/
DViewModelImpl.kt127 } catch (e: Exception) { in closeWithRuntimeException()
128 throw RuntimeException(e) in closeWithRuntimeException()
/lifecycle/lifecycle-livedata-core/src/test/java/androidx/lifecycle/
DThreadedLiveDataTest.kt72 } catch (e: InterruptedException) { in <lambda>()
73 throw RuntimeException(e) in <lambda>()
/lifecycle/lifecycle-viewmodel/src/androidInstrumentedTest/kotlin/androidx/lifecycle/
DAndroidViewModelFactoryTest.kt50 } catch (e: IllegalArgumentException) {} in testEmptyConstructorAndEmptyExtrasAndroidViewModel()
66 } catch (e: UnsupportedOperationException) {} in testEmptyConstructorAndNoExtras()
/lifecycle/lifecycle-common/src/jvmTest/java/androidx/lifecycle/
DReflectiveGenericLifecycleObserverTest.kt158 } catch (e: Exception) { in testFailingObserver()
159 assertThat("exception cause is wrong", e.cause is UnprecedentedError) in testFailingObserver()
185 private fun started(e: Lifecycle.Event) {} in testWrongFirstParam1()
195 private fun started(l: Lifecycle, e: Lifecycle.Event) {} in testWrongFirstParam2()
231 private fun started(owner: LifecycleOwner, e: Lifecycle.Event, i: Int) {} in testThreeParams()
241 private fun started(owner: LifecycleOwner, e: Lifecycle.Event) {} in testOwnerMethodWithSecondParam_eventMustBeOnAny()
/lifecycle/lifecycle-viewmodel/src/commonTest/kotlin/androidx/lifecycle/
DViewModelProviderTest.kt50 } catch (e: IllegalArgumentException) { in localViewModel()
51 assertThat(e).hasCauseThat().isNull() in localViewModel()
52 assertThat(e) in localViewModel()
/lifecycle/lifecycle-runtime-testing/src/commonTest/kotlin/androidx/lifecycle/testing/
DLifecycleRegistryTest.kt111 lifecycleOwner.lifecycle.addObserver(LifecycleEventObserver { _, e -> event = e }) in <lambda>() method
/lifecycle/lifecycle-viewmodel-navigation3/src/androidInstrumentedTest/kotlin/androidx/lifecycle/viewmodel/navigation3/
DViewModelStoreNavEntryDecoratorTest.kt99 } catch (e: Exception) { in <lambda>()
100 assertThat(e) in <lambda>()
/lifecycle/lifecycle-runtime-compose/src/commonMain/kotlin/androidx/lifecycle/compose/
DLifecycleEffect.kt68 val observer = LifecycleEventObserver { _, e -> in <lambda>() method
69 if (e == event) { in <lambda>()
/lifecycle/lifecycle-livedata/src/test/java/androidx/lifecycle/
DComputableLiveDataTest.kt93 } catch (e: InterruptedException) { in <lambda>()
94 throw AssertionError(e) in <lambda>()
/lifecycle/lifecycle-runtime/src/commonTest/kotlin/androidx/lifecycle/
DRepeatOnLifecycleTest.kt169 } catch (e: CancellationException) { in <lambda>()
224 } catch (e: CancellationException) { in <lambda>()
252 } catch (e: CancellationException) { in <lambda>()

12