Example #1
0
 /// <summary>
 /// Initializes a new instance of the RootError class.
 /// </summary>
 /// <param name="code">The service-defined error code. Supported error
 /// codes: ServiceError, UserError, ValidationError, AzureStorageError,
 /// TransientError, RequestThrottled.</param>
 /// <param name="message">A human-readable representation of the
 /// error.</param>
 /// <param name="target">The target of the error (e.g., the name of the
 /// property in error).</param>
 /// <param name="details">The related errors that occurred during the
 /// request.</param>
 /// <param name="innerError">A nested list of inner errors. When
 /// evaluating errors, clients MUST traverse through all of the nested
 /// “innerErrors” and choose the deepest one that they
 /// understand.</param>
 public RootError(string code = default(string), string message = default(string), string target = default(string), IList <ErrorDetails> details = default(IList <ErrorDetails>), InnerErrorResponse innerError = default(InnerErrorResponse))
 {
     Code       = code;
     Message    = message;
     Target     = target;
     Details    = details;
     InnerError = innerError;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the InnerErrorResponse class.
 /// </summary>
 /// <param name="code">The error code.</param>
 /// <param name="innerError">A nested list of inner errors. When
 /// evaluating errors, clients MUST traverse through all of the nested
 /// “innerErrors” and choose the deepest one that they
 /// understand.</param>
 public InnerErrorResponse(string code = default(string), InnerErrorResponse innerError = default(InnerErrorResponse))
 {
     Code       = code;
     InnerError = innerError;
     CustomInit();
 }