Introduction
Errors can happen in a process. They might be caused either due to system failure or maybe a business issue. When an error occurs due to system failure, software failure, hardware failure, and so on—broadly speaking due to infrastructure failure, they are termed as system errors. Infrastructure issues such as 'database not available', 'server not up and running', and so on, cause system errors.
Any errors due to problems in process behavior (say that a process was designed in such a way that if inventory doesn't have the stock availability, then the quotation cannot be processed normally and this would lead to a process exception) are called business exceptions, as they are caused due to interference of problems in your regular process flow.
System exceptions are used to handle system errors and business exceptions are used to handle process errors.
In this chapter, you will explore the following scenarios:
Stock unavailability leads to a business exception that is handled by...