Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. public class ExceptionManager
  2. {
  3. public static void TreatException(Exception ex)
  4. {
  5. if (ShowAndContinue(ex))
  6. // display a user-friendly message on what happened and let the app run.
  7. else
  8. throw ex;
  9. }
  10.  
  11. // (more code)
  12. }
  13.  
  14. throw new UntreatableErrorException("Manager could not treat the exception.", ex);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement