There are certain areas in your code that you don't want the program execution to stop, like say during a checkout at a ecomm store.
I was thinking of creating a special 'return' type that looks like:
public bool SpecialReturn
{
public bool IsSucess {get;set;}
public List Messages {get;set;}
}
I could put an enum there to return a ReturnType etc. if I wanted.
Point being, I would then, call my CheckOut process method and return this, so I could then handle the error more gracefully.
is this a good practice?