Web API for the bulk printing desktop application.

MAXException.cs 616B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. namespace MAX
  3. {
  4. public class MAXException : Exception
  5. {
  6. private int _errorCode;
  7. public MAXException() { }
  8. public MAXException(int errorCode, string message)
  9. : base(message)
  10. {
  11. _errorCode = errorCode;
  12. }
  13. public MAXException(int errorCode, string message, Exception innerException)
  14. : base(message, innerException)
  15. {
  16. _errorCode = errorCode;
  17. }
  18. public int ErrorCode
  19. {
  20. get { return _errorCode; }
  21. set { _errorCode = value; }
  22. }
  23. }
  24. }