/// <summary> /// Initializes a new instance of the InnerError class. /// </summary> /// <param name="additionalInfo">Any Key value pairs that can be /// provided to the client for additional verbose information.</param> /// <param name="code">Unique code for this error</param> /// <param name="embeddedInnerError">Child Inner Error, to allow /// Nesting.</param> public InnerError(IDictionary <string, string> additionalInfo = default(IDictionary <string, string>), string code = default(string), InnerError embeddedInnerError = default(InnerError)) { AdditionalInfo = additionalInfo; Code = code; EmbeddedInnerError = embeddedInnerError; CustomInit(); }
/// <summary> /// Initializes a new instance of the UserFacingError class. /// </summary> /// <param name="code">Unique code for this error</param> /// <param name="details">Additional related Errors</param> /// <param name="innerError">Inner Error</param> /// <param name="isRetryable">Whether the operation will be retryable /// or not</param> /// <param name="isUserError">Whether the operation is due to a user /// error or service error</param> /// <param name="properties">Any key value pairs that can be injected /// inside error object</param> /// <param name="recommendedAction">RecommendedAction � /// localized.</param> /// <param name="target">Target of the error.</param> public UserFacingError(string code = default(string), IList <UserFacingError> details = default(IList <UserFacingError>), InnerError innerError = default(InnerError), bool?isRetryable = default(bool?), bool?isUserError = default(bool?), IDictionary <string, string> properties = default(IDictionary <string, string>), string message = default(string), IList <string> recommendedAction = default(IList <string>), string target = default(string)) { Code = code; Details = details; InnerError = innerError; IsRetryable = isRetryable; IsUserError = isUserError; Properties = properties; Message = message; RecommendedAction = recommendedAction; Target = target; CustomInit(); }