-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTwilioRestException.cs
39 lines (34 loc) · 1.06 KB
/
TwilioRestException.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
29
30
31
32
33
34
35
36
37
38
39
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TwilioDotConfig
{
[Serializable]
public class TwilioRestException : Exception
{
/// <summary>
/// The HTTP status code for the exception.
/// </summary>
public string Status { get; set; }
/// <summary>
/// (Conditional) The URL of Twilio's documentation for the error code.
/// </summary>
public string MoreInfo { get; set; }
/// <summary>
/// (Conditional) An error code to find help for the exception.
/// </summary>
public string Code { get; set; }
/// <summary>
/// A more descriptive message regarding the exception.
/// </summary>
public string Message { get; set; }
public TwilioRestException(string Message,string Code,string MoreInfo,string Status)
{
this.Message = Message;
this.MoreInfo = MoreInfo;
this.Status = Status;
this.Code = Code;
}
}
}