Example #1
0
 public OrchestrationException(OrchestrationErrorType type, string message)
 {
     Error = new OrchestrationError
     {
         Type = type,
         Data = message
     };
 }
Example #2
0
 public OrchestrationException(OrchestrationErrorType type, object data)
 {
     Error = new OrchestrationError
     {
         Type = type,
         Data = data
     };
 }
Example #3
0
 public OrchestrationException(OrchestrationErrorType type, WorkItem wi, object data = null)
 {
     Error = new OrchestrationError()
     {
         Type       = type,
         RecordId   = wi.RecordId,
         SupplierId = wi.ResourceId,
         Action     = wi.Action,
         RecordType = wi.RecordType,
         Current    = wi.Current,
         Cache      = wi.Cache,
         Diff       = wi.Diff,
         Data       = data
     };
 }