forked from Linq2Azure/API
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAzureRestException.cs
28 lines (24 loc) · 921 Bytes
/
AzureRestException.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace Linq2Azure
{
public class AzureRestException : ApplicationException
{
/// <summary>The response message upon which an exception was thrown.</summary>
public HttpResponseMessage ResponseMessage { get; private set; }
public string StatusCode { get; private set; }
/// <summary>This is populated with useful diagnostic data such as the original request XML.</summary>
public object DebugInfo { get; set; }
public AzureRestException(HttpResponseMessage responseMessage, string statusCode, string message, object debugInfo) : base (message)
{
ResponseMessage = responseMessage;
StatusCode = statusCode;
DebugInfo = debugInfo;
}
}
}