forked from ServiceStack/ServiceStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHelloZipResponseException.cs
More file actions
93 lines (83 loc) · 3.21 KB
/
HelloZipResponseException.cs
File metadata and controls
93 lines (83 loc) · 3.21 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
namespace AutorestClient.Models
{
using Microsoft.Rest;
/// <summary>
/// Exception thrown for an invalid response with HelloZipResponse
/// information.
/// </summary>
#if LEGACY
[System.Serializable]
#endif
public class HelloZipResponseException : RestException
{
/// <summary>
/// Gets information about the associated HTTP request.
/// </summary>
public HttpRequestMessageWrapper Request { get; set; }
/// <summary>
/// Gets information about the associated HTTP response.
/// </summary>
public HttpResponseMessageWrapper Response { get; set; }
/// <summary>
/// Gets or sets the body object.
/// </summary>
public HelloZipResponse Body { get; set; }
/// <summary>
/// Initializes a new instance of the HelloZipResponseException class.
/// </summary>
public HelloZipResponseException()
{
}
/// <summary>
/// Initializes a new instance of the HelloZipResponseException class.
/// </summary>
/// <param name="message">The exception message.</param>
public HelloZipResponseException(string message)
: this(message, null)
{
}
/// <summary>
/// Initializes a new instance of the HelloZipResponseException class.
/// </summary>
/// <param name="message">The exception message.</param>
/// <param name="innerException">Inner exception.</param>
public HelloZipResponseException(string message, System.Exception innerException)
: base(message, innerException)
{
}
#if LEGACY
/// <summary>
/// Initializes a new instance of the HelloZipResponseException class.
/// </summary>
/// <param name="info">Serialization info.</param>
/// <param name="context">Streaming context.</param>
protected HelloZipResponseException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Serializes content of the exception.
/// </summary>
/// <param name="info">Serialization info.</param>
/// <param name="context">Streaming context.</param>
/// <exception cref="System.ArgumentNullException">
/// Thrown when a required parameter is null
/// </exception>
[System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Demand, SerializationFormatter = true)]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
if (info == null)
{
throw new System.ArgumentNullException("info");
}
info.AddValue("Request", Request);
info.AddValue("Response", Response);
info.AddValue("Body", Body);
}
#endif
}
}