<gh_stars>0// <auto-generated>
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>

namespace Microsoft.Bonsai.SimulatorApi.Models
{
    using Microsoft.Rest;

    /// <summary>
    /// Exception thrown for an invalid response with ProblemDetails
    /// information.
    /// </summary>
    public partial class ProblemDetailsException : 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 ProblemDetails Body { get; set; }

        /// <summary>
        /// Initializes a new instance of the ProblemDetailsException class.
        /// </summary>
        public ProblemDetailsException()
        {
        }

        /// <summary>
        /// Initializes a new instance of the ProblemDetailsException class.
        /// </summary>
        /// <param name="message">The exception message.</param>
        public ProblemDetailsException(string message)
            : this(message, null)
        {
        }

        /// <summary>
        /// Initializes a new instance of the ProblemDetailsException class.
        /// </summary>
        /// <param name="message">The exception message.</param>
        /// <param name="innerException">Inner exception.</param>
        public ProblemDetailsException(string message, System.Exception innerException)
            : base(message, innerException)
        {
        }
    }
}
