Tag Archives: Unhandled

Msg: Unhandled Promise rejection: Can not learn properties of undefined (studying ‘knowledge’) – Angular

Msg: Unhandled Promise rejection: Cannot read properties of undefined (reading 'data') - Angular

My angular utility has a category which detects community standing: @Injectable({ providedIn: ‘root’ }) export class NetworkAutoSyncService { protected isConnected = true; constructor( protected community: Community, protected loadingController: LoadingController, protected syncServices: SyncMasterService, protected userParameterService: UserParametersService ) { this.networkSubscriber(); } networkSubscriber() { if (this.community.sort == ‘none’) { this.isConnected = false; } this.community.onDisconnect().subscribe(() => { console.log(‘community was…

Read More

Refactoring 004 – Take away Unhandled Exceptions

Refactoring 004 - Remove Unhandled Exceptions

Refactorings (4 Part Series) 1 Refactoring 001 – Remove Setters 2 Refactoring 002 – Extract Method 3 Refactoring 003 – Extract Constant 4 Refactoring 004 – Remove Unhandled Exceptions Creating YAGNI exception courses pollutes our surroundings. Let’s take away them. TL;DR: Take away pointless and never references empty exception courses. Issues Addressed Empty Courses Namespace…

Read More