You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

50 line
768 B

  1. using System;
  2. namespace SUISS.Cloud
  3. {
  4. public class SparkSocException : Exception
  5. {
  6. public SparkSocException(string message, int httpCode, int errorCode) : base(message)
  7. {
  8. this.HttpCode = httpCode;
  9. this.ErrorCode = errorCode;
  10. }
  11. public SparkSocException(string message) : base(message)
  12. {
  13. }
  14. public SparkSocException(string message, Exception inner) : base(message, inner)
  15. {
  16. }
  17. public int ErrorCode
  18. {
  19. get
  20. {
  21. return this._errorCode;
  22. }
  23. private set
  24. {
  25. this._errorCode = value;
  26. }
  27. }
  28. public int HttpCode
  29. {
  30. get
  31. {
  32. return this._httpCode;
  33. }
  34. private set
  35. {
  36. this._httpCode = value;
  37. }
  38. }
  39. private int _errorCode;
  40. private int _httpCode;
  41. }
  42. }