< Summary

Class:Microsoft.Azure.Batch.Protocol.Models.BatchErrorException
Assembly:Microsoft.Azure.Batch
File(s):C:\Git\azure-sdk-for-net\sdk\batch\Microsoft.Azure.Batch\src\GeneratedProtocol\Models\BatchErrorException.cs
Covered lines:4
Uncovered lines:5
Coverable lines:9
Total lines:61
Line coverage:44.4% (4 of 9)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
get_Request()-0%100%
get_Response()-100%100%
get_Body()-100%100%
.ctor()-100%100%
.ctor(...)-0%100%
.ctor(...)-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\batch\Microsoft.Azure.Batch\src\GeneratedProtocol\Models\BatchErrorException.cs

#LineLine coverage
 1// <auto-generated>
 2// Copyright (c) Microsoft Corporation. All rights reserved.
 3// Licensed under the MIT License. See License.txt in the project root for
 4// license information.
 5//
 6// Code generated by Microsoft (R) AutoRest Code Generator.
 7// Changes may cause incorrect behavior and will be lost if the code is
 8// regenerated.
 9// </auto-generated>
 10
 11namespace Microsoft.Azure.Batch.Protocol.Models
 12{
 13    using Microsoft.Rest;
 14
 15    /// <summary>
 16    /// Exception thrown for an invalid response with BatchError information.
 17    /// </summary>
 18    public partial class BatchErrorException : RestException
 19    {
 20        /// <summary>
 21        /// Gets information about the associated HTTP request.
 22        /// </summary>
 023        public HttpRequestMessageWrapper Request { get; set; }
 24
 25        /// <summary>
 26        /// Gets information about the associated HTTP response.
 27        /// </summary>
 2028        public HttpResponseMessageWrapper Response { get; set; }
 29
 30        /// <summary>
 31        /// Gets or sets the body object.
 32        /// </summary>
 633        public BatchError Body { get; set; }
 34
 35        /// <summary>
 36        /// Initializes a new instance of the BatchErrorException class.
 37        /// </summary>
 338        public BatchErrorException()
 39        {
 340        }
 41
 42        /// <summary>
 43        /// Initializes a new instance of the BatchErrorException class.
 44        /// </summary>
 45        /// <param name="message">The exception message.</param>
 46        public BatchErrorException(string message)
 047            : this(message, null)
 48        {
 049        }
 50
 51        /// <summary>
 52        /// Initializes a new instance of the BatchErrorException class.
 53        /// </summary>
 54        /// <param name="message">The exception message.</param>
 55        /// <param name="innerException">Inner exception.</param>
 56        public BatchErrorException(string message, System.Exception innerException)
 057            : base(message, innerException)
 58        {
 059        }
 60    }
 61}