@using System.Linq @inherits AutoRest.Core.Template @Header("// ") @EmptyLine namespace @(Settings.Namespace).@(Settings.ModelsName) { @EmptyLine /// @WrapComment("/// ", "Exception thrown for an invalid response with " + Model.Name + " information.") /// @(Model.GetObsoleteAttribute()) public partial class @Model.ExceptionTypeDefinitionName : Microsoft.Rest.RestException { /// /// Gets information about the associated HTTP request. /// public Microsoft.Rest.HttpRequestMessageWrapper Request { get; set; } @EmptyLine /// /// Gets information about the associated HTTP response. /// public Microsoft.Rest.HttpResponseMessageWrapper Response { get; set; } @EmptyLine /// /// Gets or sets the body object. /// public @Model.Name Body { get; set; } @EmptyLine /// /// Initializes a new instance of the @Model.ExceptionTypeDefinitionName class. /// public @(@Model.ExceptionTypeDefinitionName)() { } @EmptyLine /// /// Initializes a new instance of the @Model.ExceptionTypeDefinitionName class. /// /// The exception message. public @(Model.ExceptionTypeDefinitionName)(string message) : this(message, null) { } @EmptyLine /// /// Initializes a new instance of the @Model.ExceptionTypeDefinitionName class. /// /// The exception message. /// Inner exception. public @(Model.ExceptionTypeDefinitionName)(string message, System.Exception innerException) : base(message, innerException) { } } }