Esempio n. 1
0
 /// <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 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;
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ASRProviderError" /> class with required parameters.
 /// </summary>
 /// <param name="error">ProviderError object</param>
 public ASRProviderError(ProviderError error)
 {
     //this.CreationTimeUtc = error.CreationTimeUtc;
     this.ErrorCode = error.ErrorCode;
     this.ErrorId = error.ErrorId;
     this.ErrorMessage = error.ErrorMessage;
 }
Esempio n. 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ASRProviderError" /> class with required parameters.
 /// </summary>
 /// <param name="error">ProviderError object</param>
 public ASRProviderError(ProviderError error)
 {
     this.AffectedObjects = error.AffectedObjects;
     this.CreationTimeUtc = error.CreationTimeUtc;
     this.ErrorCode = error.ErrorCode;
     this.ErrorId = error.ErrorId;
     this.ErrorLevel = error.ErrorLevel;
     this.ErrorMessage = error.ErrorMessage;
     this.WorkflowId = error.WorkflowId;
 }