Tag - exception handling

C# Keywords Tutorial Part 86: try

C# is an object-oriented programming language that provides a wide range of features to help developers write efficient and robust code. One of these features is the "try" keyword, which is used to implement exception handling in C#. In this blog post, we will explore the "try" keyword in detail...

C# Keywords Tutorial Part 32: finally

In C#, the "finally" keyword is used in a try-catch-finally block to specify a block of code that will be executed regardless of whether an exception is thrown or not. The finally block is often used to perform cleanup tasks, such as closing files or releasing resources, that must be...

C# Keywords Tutorial Part 15: checked

C# is a powerful programming language that allows developers to create robust and scalable applications. One of the features that makes C# stand out is the "checked" keyword. In this blog post, we will explore what the "checked" keyword is and how it can be used in C#.

What is...

C# Keywords Tutorial Part 13: catch

C# is a modern, object-oriented programming language that is widely used to develop a wide range of applications. One of the key features of C# is its robust error handling mechanism, which allows developers to write code that can handle errors gracefully. The "catch" keyword is an essential part of C#'s...

Exception Handling in Angular 10

I am using Angular 10 and when I click to open Persons page I get “Nulljector error” and redirect me to the home page . NullInjectorError: No provider for PersonServiceProxy! <a ng-reflect-router-link="/app/main/phonebook" href="/app/main/phonebook">phonebook </a> The solution : Add your ServiceProxy to providers in "\angular\src\shared\service-proxies\service-proxy.module.ts". Open service-proxy.module.ts fileIn @NgModule > providers > Add this Line “ApiServiceProxies.PersonServiceProxy”...