| | 1 | | // <auto-generated> |
| | 2 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | 3 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | 4 | | // regenerated. |
| | 5 | | // </auto-generated> |
| | 6 | |
|
| | 7 | | namespace Microsoft.Azure.CognitiveServices.ContentModerator.Models |
| | 8 | | { |
| | 9 | | using Microsoft.Rest; |
| | 10 | |
|
| | 11 | | /// <summary> |
| | 12 | | /// Exception thrown for an invalid response with APIError information. |
| | 13 | | /// </summary> |
| | 14 | | public partial class APIErrorException : RestException |
| | 15 | | { |
| | 16 | | /// <summary> |
| | 17 | | /// Gets information about the associated HTTP request. |
| | 18 | | /// </summary> |
| 0 | 19 | | public HttpRequestMessageWrapper Request { get; set; } |
| | 20 | |
|
| | 21 | | /// <summary> |
| | 22 | | /// Gets information about the associated HTTP response. |
| | 23 | | /// </summary> |
| 0 | 24 | | public HttpResponseMessageWrapper Response { get; set; } |
| | 25 | |
|
| | 26 | | /// <summary> |
| | 27 | | /// Gets or sets the body object. |
| | 28 | | /// </summary> |
| 0 | 29 | | public APIError Body { get; set; } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the APIErrorException class. |
| | 33 | | /// </summary> |
| 0 | 34 | | public APIErrorException() |
| | 35 | | { |
| 0 | 36 | | } |
| | 37 | |
|
| | 38 | | /// <summary> |
| | 39 | | /// Initializes a new instance of the APIErrorException class. |
| | 40 | | /// </summary> |
| | 41 | | /// <param name="message">The exception message.</param> |
| | 42 | | public APIErrorException(string message) |
| 0 | 43 | | : this(message, null) |
| | 44 | | { |
| 0 | 45 | | } |
| | 46 | |
|
| | 47 | | /// <summary> |
| | 48 | | /// Initializes a new instance of the APIErrorException class. |
| | 49 | | /// </summary> |
| | 50 | | /// <param name="message">The exception message.</param> |
| | 51 | | /// <param name="innerException">Inner exception.</param> |
| | 52 | | public APIErrorException(string message, System.Exception innerException) |
| 0 | 53 | | : base(message, innerException) |
| | 54 | | { |
| 0 | 55 | | } |
| | 56 | | } |
| | 57 | | } |