Guest User

Untitled

a guest
Mar 20th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. /// <summary>
  2. /// In addition to descriptive message, application exceptions can contain machine-parseable codes
  3. /// </summary>
  4. public class ApplicationException : Exception
  5. {
  6. public ApplicationException()
  7. {
  8. }
  9.  
  10. public ApplicationException(string message, int? code) : base(message)
  11. {
  12. Code = code;
  13. }
  14.  
  15. public ApplicationException(string message, Exception innerException) : base(message, innerException)
  16. {
  17. }
  18.  
  19. protected ApplicationException(SerializationInfo info, StreamingContext context) : base(info, context)
  20. {
  21. }
  22.  
  23. public int? Code { get; set; }
  24. }
Add Comment
Please, Sign In to add comment