/// <summary> /// Initializes a new instance of the Error class. /// </summary> /// <param name="code">One of a server-defined set of error codes. /// Possible values include: 'BadArgument', 'Forbidden', 'NotFound', /// 'KbNotFound', 'Unauthorized', 'Unspecified', 'EndpointKeysError', /// 'QuotaExceeded', 'QnaRuntimeError', 'SKULimitExceeded', /// 'OperationNotFound', 'ServiceError', 'ValidationFailure', /// 'ExtractionFailure'</param> /// <param name="message">A human-readable representation of the /// error.</param> /// <param name="target">The target of the error.</param> /// <param name="details">An array of details about specific errors /// that led to this reported error.</param> /// <param name="innerError">An object containing more specific /// information than the current object about the error.</param> public Error(string code, string message = default(string), string target = default(string), IList <Error> details = default(IList <Error>), InnerErrorModel innerError = default(InnerErrorModel)) { Code = code; Message = message; Target = target; Details = details; InnerError = innerError; CustomInit(); }
/// <summary> /// Initializes a new instance of the ErrorResponseError class. /// </summary> /// <param name="code">One of a server-defined set of error codes. /// Possible values include: 'BadArgument', 'Forbidden', 'NotFound', /// 'KbNotFound', 'Unauthorized', 'Unspecified', 'EndpointKeysError', /// 'QuotaExceeded', 'QnaRuntimeError', 'SKULimitExceeded', /// 'OperationNotFound', 'ServiceError', 'ValidationFailure', /// 'ExtractionFailure'</param> /// <param name="message">A human-readable representation of the /// error.</param> /// <param name="target">The target of the error.</param> /// <param name="details">An array of details about specific errors /// that led to this reported error.</param> /// <param name="innerError">An object containing more specific /// information than the current object about the error.</param> public ErrorResponseError(string code, string message = default(string), string target = default(string), IList <Error> details = default(IList <Error>), InnerErrorModel innerError = default(InnerErrorModel)) : base(code, message, target, details, innerError) { CustomInit(); }
/// <summary> /// Initializes a new instance of the InnerErrorModel class. /// </summary> /// <param name="code">A more specific error code than was provided by /// the containing error.</param> /// <param name="innerError">An object containing more specific /// information than the current object about the error.</param> public InnerErrorModel(string code = default(string), InnerErrorModel innerError = default(InnerErrorModel)) { Code = code; InnerError = innerError; CustomInit(); }