Пример #1
0
 /// <summary>
 /// Initializes a new instance of the ApiError class.
 /// </summary>
 public ApiError(IList <ApiErrorBase> details = default(IList <ApiErrorBase>), InnerError innererror = default(InnerError), string code = default(string), string target = default(string), string message = default(string))
 {
     Details    = details;
     Innererror = innererror;
     Code       = code;
     Target     = target;
     Message    = message;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the ErrorDetail class.
 /// </summary>
 /// <param name="code">The error code.</param>
 /// <param name="target">The target of the particular error.</param>
 /// <param name="message">User friendly error message.</param>
 /// <param name="details">The Api error details</param>
 /// <param name="innerError">The Api inner error</param>
 public ErrorDetail(string code = default(string), string target = default(string), string message = default(string), IList <ErrorDetail> details = default(IList <ErrorDetail>), InnerError innerError = default(InnerError))
 {
     Code       = code;
     Target     = target;
     Message    = message;
     Details    = details;
     InnerError = innerError;
     CustomInit();
 }