Interview question - Scenario based

“Invalid Password” is a Business Exception, so no retry is needed.
Modify InitAllApplications.xaml to Detect Business Exceptions

  1. In InitAllApplications.xaml**, surround the login logic with a Try-Catch.
  2. Inside the Catch Block:
    If the error is “Invalid Password”, throw a BusinessRuleException.
    Otherwise, rethrow the Application Exception.
  3. Modify Main.xaml:
    After catching a Business Exception, stop the process immediately and go to the End Process state.
1 Like