public OrchestrationException(OrchestrationErrorType type, string message) { Error = new OrchestrationError { Type = type, Data = message }; }
public OrchestrationException(OrchestrationErrorType type, object data) { Error = new OrchestrationError { Type = type, Data = data }; }
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 }; }