Skip to main content

Command Palette

Search for a command to run...

Exception Handling

Published
1 min read

What are exceptions and Why handle them

Exceptions are errors/ unexpected behavior that our application encounter while running, which can result in different outcomes.

Why Hundle Exceptions.

Handling exceptions has many benefits for the users of our applications, let's face it no one likes losing their progress and starting over or an application just crashing on you, without any information.

ExceptionClassHierarchy-1.jpg

Importance of Exception Handling

  1. When exceptions can be handled in a way that enables a user to fix something and retry again

  2. They help us keep logs in when things go wrong and prevent our applications from crushing without additional information.