/// <summary> /// Initializes a new instance of the ErrorContent class. /// </summary> /// <param name="code">A service-defined error code that should be /// human-readable. /// This code serves as a more specific indicator of the error than /// the HTTP error code specified in the response</param> /// <param name="message">A human-readable representation of the error. /// It is intended as /// an aid to developers and is not suitable for exposure to end /// users</param> /// <param name="details">An array of details representing distinct /// related errors that occured during the request</param> /// <param name="innererror">The stack trace of the error. The payload /// is service-defined. /// If the error is not at the root level, the object contains a Code /// and an InnerError property</param> /// <param name="target">The target of the particular error (e.g., the /// name of the property in error)</param> public ErrorContent(string code, string message, IList <ErrorDetail> details = default(IList <ErrorDetail>), InnerError innererror = default(InnerError), string target = default(string)) { Details = details; Innererror = innererror; Code = code; Message = message; Target = target; CustomInit(); }
/// <summary> /// Initializes a new instance of the InnerError class. /// </summary> /// <param name="code">A service-defined error code that should be /// human-readable. /// This code serves as a more specific indicator of the error than /// the HTTP error code specified in the response</param> /// <param name="innererror">A human-readable representation of the /// error. It is intended as /// an aid to developers and is not suitable for exposure to end /// users</param> public InnerError(string code = default(string), InnerError innererror = default(InnerError)) { Code = code; Innererror = innererror; CustomInit(); }