Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ExceptionManager
- {
- public static void TreatException(Exception ex)
- {
- if (ShowAndContinue(ex))
- // display a user-friendly message on what happened and let the app run.
- else
- throw ex;
- }
- // (more code)
- }
- throw new UntreatableErrorException("Manager could not treat the exception.", ex);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement