Years ago I received an old C# legacy project where every method was catching all exceptions inside it, wrapping them in a new Exception, and rethrowing them:
voidFoo(...){try{// ...}catch(Exceptione){thrownewException("Exception thrown at Foo",e);}}voidBar(...){try{// ...}catch(Exceptione){thrownewException("Exception thrown at Bar",e);}}voidBaz(...){try{// ...}catch(Exceptione){thrownewException("Exception thrown at Foo",e);}}
Years ago I received an old C# legacy project where every method was catching all exceptions inside it, wrapping them in a new
Exception
, and rethrowing them:Like Pokemon Exception Handling, and then releasing them again...
AHAHHAHAHA