Advertisement
Guest User

Untitled

a guest
Aug 5th, 2015
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. namespace SomeNamespace
  2. {
  3. using System;
  4.  
  5. class CustomException : Exception
  6. {
  7. public CustomException()
  8. : base() { }
  9.  
  10. public CustomException(string message)
  11. : base(message) { }
  12.  
  13. public CustomException(string format, params object[] args)
  14. : base(string.Format(format, args)) { }
  15.  
  16. public CustomException(string message, Exception innerException)
  17. : base(message, innerException) { }
  18.  
  19. public CustomException(string format, Exception innerException, params object[] args)
  20. : base(string.Format(format, args), innerException) { }
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement