Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
WebException.cs
1using System;
2using System.Net;
3using System.Net.Http.Headers;
4
6{
10 public class WebException : Exception
11 {
12 private readonly HttpStatusCode statusCode;
13 private readonly string contentType;
14 private readonly byte[] rawContent;
15 private readonly object content;
16 private readonly HttpHeaders headers;
17
27 public WebException(string Message, HttpStatusCode StatusCode, string ContentType, byte[] RawContent, object Content, HttpHeaders Headers)
28 : base(Message)
29 {
30 this.statusCode = StatusCode;
31 this.contentType = ContentType;
32 this.rawContent = RawContent;
33 this.content = Content;
34 this.headers = Headers;
35 }
36
40 public HttpStatusCode StatusCode => this.statusCode;
41
45 public string ContentType => this.contentType;
46
50 public byte[] RawContent => this.rawContent;
51
55 public object Content => this.content;
56
60 public HttpHeaders Headers => this.headers;
61 }
62}
Exception class for web exceptions.
Definition: WebException.cs:11
HttpHeaders Headers
HTTP Headers
Definition: WebException.cs:60
string ContentType
Content-Type of response.
Definition: WebException.cs:45
WebException(string Message, HttpStatusCode StatusCode, string ContentType, byte[] RawContent, object Content, HttpHeaders Headers)
Exception class for web exceptions.
Definition: WebException.cs:27
byte[] RawContent
Raw undecoded content, in binary form.
Definition: WebException.cs:50
HttpStatusCode StatusCode
HTTP Status Code of content.
Definition: WebException.cs:40
object Content
Decoded content.
Definition: WebException.cs:55