Skip to content

Error handling

Defining how a program handles detected errors and responds appropriately.

Also known asException handling
Software architecture

What is error handling?

Error handling defines how a program detects, propagates and responds to errors. It may include understandable feedback, safely ending a step and releasing occupied resources. Mechanisms such as try and catch can catch exceptions; they do not automatically restore business success. An expected invalid input need not be implemented as an exception in every application either.

In a fictional portal, submitting a service request is interrupted. The interface must not simply report success. If it is certain that nothing was saved, it can offer a suitable retry. If the outcome is unclear, establish whether the request already exists before resubmitting so that no duplicate case is created. Customers receive understandable status feedback rather than internal technical details; appropriate error behaviour needs checking in the actual workflow.

Sources