// Summary: // Creates an CustomerUserResult indicating a failed customer user // operation, with a list of errors if applicable. // Parameters: // errors: // An optional array of CustomerUserResultError which caused // the operation to fail. // Returns: // An CustomerUserResult indicating a failed customer user // operation, with a list of errors if applicable. public static FulfillmentManagerOperationResult Failed(params FulfillmentManagementError[] errors) { var result = new FulfillmentManagerOperationResult { Succeeded = false }; if (errors != null) { result.errors.AddRange(errors); } return(result); }
public FulfillmentManagerException(FulfillmentManagerOperationResult fulfillmentManagerOperationResult) { this.OperationResult = fulfillmentManagerOperationResult; }