/// <summary> /// Initializes a new instance of the ErrorDetails class with required /// arguments. /// </summary> public ErrorDetails(ServiceError serviceErrorDetails, ProviderError providerErrorDetails, string taskId) : this() { if (serviceErrorDetails == null) { throw new ArgumentNullException("serviceErrorDetails"); } if (providerErrorDetails == null) { throw new ArgumentNullException("providerErrorDetails"); } if (taskId == null) { throw new ArgumentNullException("taskId"); } this.ServiceErrorDetails = serviceErrorDetails; this.ProviderErrorDetails = providerErrorDetails; this.TaskId = taskId; }
/// <summary> /// Initializes a new instance of the <see cref="ASRServiceError" /> class with required parameters. /// </summary> /// <param name="serviceError">ServiceError object</param> public ASRServiceError(ServiceError serviceError) : base(serviceError) { }
/// <summary> /// Initializes a new instance of the <see cref="Error" /> class with required parameters. /// </summary> /// <param name="se">Service Error</param> public Error(ServiceError se) { this.ClientRequestId = se.ActivityId; this.Code = se.Code; this.Message = se.Message; this.PossibleCauses = se.PossibleCauses; this.RecommendedAction = se.RecommendedAction; }