I have an application that has several types of custom exceptions.
Each method has several different types of exceptions that they can throw.
The code has 3 steps which are 3 places I want to catch exceptions:
Setup Account Info Object (Account service could be offline)
GetAccountInfo (accounInfo server could be down etc)
Just wondering the best way to do this, should I put a try catch block instead of the if statement or should I go ahead and place a try catch within Validate ParamDetails?
The I would assume just a try catch around the other 2 would do the job?
//1. Validate Parameters
//2. Setup Account Info
AccountInfoServices.AccountInfo accountInfo = new AccountInfo();
//3. Account Info
accountInfo = accountInfoServices.GetAccountInfo();