MessageSendException.cs 1006 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Net;
  6. using WindowsPhone.Recipes.Push.Messasges.Properties;
  7. namespace WindowsPhone.Recipes.Push.Messasges
  8. {
  9. /// <summary>
  10. /// Represents errors that occur during push notification message send operation.
  11. /// </summary>
  12. public class MessageSendException : Exception
  13. {
  14. /// <summary>
  15. /// Gets the message send result.
  16. /// </summary>
  17. public MessageSendResult Result { get; private set; }
  18. /// <summary>
  19. /// Initializes a new instance of this type.
  20. /// </summary>
  21. /// <param name="result">The send operation result.</param>
  22. /// <param name="innerException">An inner exception causes this error.</param>
  23. internal MessageSendException(MessageSendResult result, Exception innerException)
  24. : base(Resources.FailedToSendMessage, innerException)
  25. {
  26. Result = result;
  27. }
  28. }
  29. }