ServiceFault.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //-----------------------------------------------------------------------
  2. // <copyright file="ServiceFault.cs" company="Microsoft">
  3. // Copyright (c) iano, Microsoft. All rights reserved.
  4. // </copyright>
  5. //-----------------------------------------------------------------------
  6. namespace Microsoft.Hawaii
  7. {
  8. using System;
  9. using System.Collections.Generic;
  10. using System.Runtime.Serialization;
  11. /// <summary>
  12. /// Represents an error returned to the client.
  13. /// </summary>
  14. [DataContract]
  15. public class ServiceFault
  16. {
  17. /// <summary>
  18. /// Gets or sets the message.
  19. /// </summary>
  20. /// <value>
  21. /// The message.
  22. /// </value>
  23. [DataMember]
  24. public string Message { get; set; }
  25. /// <summary>
  26. /// Gets or sets the correlation ID of the message.
  27. /// </summary>
  28. /// <value>
  29. /// The id uniquely identifying the message
  30. /// </value>
  31. [DataMember]
  32. public Guid RequestId { get; set; }
  33. /// <summary>
  34. /// Gets or sets the exception stack.
  35. /// </summary>
  36. /// <value>
  37. /// The exception stack.
  38. /// </value>
  39. [DataMember]
  40. public IEnumerable<LoggedException> ExceptionStack { get; set; }
  41. }
  42. }