diff --git a/code/ArkTS1.2/ANISample/entry/src/main/ets/entryability/EntryAbility.ets b/code/ArkTS1.2/ANISample/entry/src/main/ets/entryability/EntryAbility.ets index a832d961a27ea4c7703487406a87ea9d19ff2c0c..1e3618f3815419039a73ceb72db74909422ddd75 100644 --- a/code/ArkTS1.2/ANISample/entry/src/main/ets/entryability/EntryAbility.ets +++ b/code/ArkTS1.2/ANISample/entry/src/main/ets/entryability/EntryAbility.ets @@ -46,7 +46,7 @@ class EntryAbility extends UIAbility { } hilog.info(0x0000, 'testTag', 'loadContent ok'); }); - } catch (e: Error) { + } catch (e) { hilog.info(0x0000, 'testTag', 'loadContent catch error:-----------' + e.message); } } diff --git a/code/ArkTS1.2/ComponentSample/entry/src/main/ets/entryability/EntryAbility.ets b/code/ArkTS1.2/ComponentSample/entry/src/main/ets/entryability/EntryAbility.ets index 7cfa74313136d60906a788b73684b8d3539b7120..cc3692d348040265ba1d1fbc5963bf439d636c5b 100644 --- a/code/ArkTS1.2/ComponentSample/entry/src/main/ets/entryability/EntryAbility.ets +++ b/code/ArkTS1.2/ComponentSample/entry/src/main/ets/entryability/EntryAbility.ets @@ -49,7 +49,7 @@ class EntryAbility extends UIAbility { } hilog.info(0x0000, 'testTag', 'loadContent ok'); }); - } catch (e: Error) { + } catch (e) { hilog.error(0x0000, 'testTag', 'loadContent catch error:-----------' + e.message); } } diff --git a/code/ArkTS1.2/ModuleSample/entry/src/main/ets/entryability/EntryAbility.ets b/code/ArkTS1.2/ModuleSample/entry/src/main/ets/entryability/EntryAbility.ets index b892d18a00d879e20ee20840d94a2e06f10ae1c5..5c794f0faba1fee07e0827bd090a0903e06879af 100644 --- a/code/ArkTS1.2/ModuleSample/entry/src/main/ets/entryability/EntryAbility.ets +++ b/code/ArkTS1.2/ModuleSample/entry/src/main/ets/entryability/EntryAbility.ets @@ -24,7 +24,7 @@ class EntryAbility extends UIAbility { } hilog.info(0x0000, 'testTag', 'loadContent ok'); }); - } catch (e: Error) { + } catch (e) { hilog.info(0x0000, 'testTag', 'loadContent catch error:-----------' + e.message); } } diff --git a/code/ArkTS1.2/ParallelSample/entry/src/main/ets/entryability/EntryAbility.ets b/code/ArkTS1.2/ParallelSample/entry/src/main/ets/entryability/EntryAbility.ets index 943de5a185e8d422b1831b3130b185e212823bcd..ac4c227ff935acb73525926ccd14849e8a6dddcf 100644 --- a/code/ArkTS1.2/ParallelSample/entry/src/main/ets/entryability/EntryAbility.ets +++ b/code/ArkTS1.2/ParallelSample/entry/src/main/ets/entryability/EntryAbility.ets @@ -47,7 +47,7 @@ class EntryAbility extends UIAbility { } hilog.info(0x0000, 'testTag', 'loadContent ok'); }); - } catch (e: Error) { + } catch (e) { hilog.error(0x0000, 'testTag', 'loadContent catch error:-----------' + e.message); } } diff --git a/code/ArkTS1.2/ThreadSafeContainersSample/entry/src/main/ets/entryability/EntryAbility.ets b/code/ArkTS1.2/ThreadSafeContainersSample/entry/src/main/ets/entryability/EntryAbility.ets index b892d18a00d879e20ee20840d94a2e06f10ae1c5..5c794f0faba1fee07e0827bd090a0903e06879af 100644 --- a/code/ArkTS1.2/ThreadSafeContainersSample/entry/src/main/ets/entryability/EntryAbility.ets +++ b/code/ArkTS1.2/ThreadSafeContainersSample/entry/src/main/ets/entryability/EntryAbility.ets @@ -24,7 +24,7 @@ class EntryAbility extends UIAbility { } hilog.info(0x0000, 'testTag', 'loadContent ok'); }); - } catch (e: Error) { + } catch (e) { hilog.info(0x0000, 'testTag', 'loadContent catch error:-----------' + e.message); } } diff --git a/code/ArkTS1.2/interopSample/entry/src/main/ets/entryability/EntryAbility.ets b/code/ArkTS1.2/interopSample/entry/src/main/ets/entryability/EntryAbility.ets index 943de5a185e8d422b1831b3130b185e212823bcd..ac4c227ff935acb73525926ccd14849e8a6dddcf 100644 --- a/code/ArkTS1.2/interopSample/entry/src/main/ets/entryability/EntryAbility.ets +++ b/code/ArkTS1.2/interopSample/entry/src/main/ets/entryability/EntryAbility.ets @@ -47,7 +47,7 @@ class EntryAbility extends UIAbility { } hilog.info(0x0000, 'testTag', 'loadContent ok'); }); - } catch (e: Error) { + } catch (e) { hilog.error(0x0000, 'testTag', 'loadContent catch error:-----------' + e.message); } } diff --git a/code/HelloWorld/entry/src/main/ets/entryability/EntryAbility.ets b/code/HelloWorld/entry/src/main/ets/entryability/EntryAbility.ets index 5158b13b6f4392cb6e4920b90d87ee4d15ae7f23..d0a2e452dbb0c6a963f95e8660afdd7f5be8650e 100644 --- a/code/HelloWorld/entry/src/main/ets/entryability/EntryAbility.ets +++ b/code/HelloWorld/entry/src/main/ets/entryability/EntryAbility.ets @@ -24,7 +24,7 @@ class EntryAbility extends UIAbility { } hilog.info(0x0000, 'testTag', 'loadContent ok'); }); - } catch (e: Error) { + } catch (e) { hilog.info(0x0000, 'testTag', 'loadContent catch error:-----------' + e.message); } }