How to use the datax-common.getApiErrorMessage function in datax-common

To help you get started, we’ve selected a few datax-common examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / data-accelerator / Website / Packages / datax-query / src / modules / query / queryActions.js View on Github external
.catch(error => {
            const message = getApiErrorMessage(error);
            updateErrorMessage(dispatch, message);
            KernelActions.fetchingKernel(dispatch, false);
            return Q.reject({ error: true, message: message });
        });
};
github microsoft / data-accelerator / Website / Packages / datax-pipeline / src / modules / flowDefinition / flowActions.js View on Github external
.catch(error => {
            updateInputProperties(dispatch, getState, {
                inputSchemaFile: '{}'
            });

            fetchingInputSchema(dispatch, false);

            const message = getApiErrorMessage(error);
            return Q.reject({ error: true, message: message });
        });
};
github microsoft / data-accelerator / Website / Packages / datax-query / src / modules / query / kernelActions.js View on Github external
.catch(error => {
            const message = getApiErrorMessage(error);
            return Q.reject({ error: true, message: message });
        });
};
github microsoft / data-accelerator / Website / Packages / datax-pipeline / src / modules / flowDefinition / components / flowDefinitionPanel.jsx View on Github external
.catch(error => {
                this.setState({
                    isDeleting: false,
                    showConfirmationDialog: false,
                    showMessageBar: true,
                    messageBarIsError: true,
                    messageBarStatement: getApiErrorMessage(error)
                });
            });
    }
github microsoft / data-accelerator / Website / Packages / datax-pipeline / src / modules / flowDefinition / flowActions.js View on Github external
const rejectWithMessage = (error, msg) =>
    Q.reject({
        error: true,
        message: msg + getApiErrorMessage(error)
    });
github microsoft / data-accelerator / Website / Packages / datax-query / src / modules / query / kernelActions.js View on Github external
.catch(error => {
            const message = getApiErrorMessage(error);
            updateErrorMessage(dispatch, message);
            fetchingKernel(dispatch, false);
            return Q.reject({ error: true, message: message });
        });
};
github microsoft / data-accelerator / Website / Packages / datax-pipeline / src / modules / flowDefinition / flowActions.js View on Github external
.catch(error => {
            const message = getApiErrorMessage(error);
            return Q.reject({
                error: true,
                message: `There was an issue saving the Flow. Please fix following error then save again: ${message}`
            });
        });
};
github microsoft / data-accelerator / Website / Packages / datax-metrics / src / modules / metrics / components / metricExplorer.jsx View on Github external
this.props.onGetProducts().catch(error => {
                const message = getApiErrorMessage(error);
                this.setState({
                    errorMessage: message
                });
            });
        }
github microsoft / data-accelerator / Website / Packages / datax-jobs / src / modules / jobs / components / sparkJobs.jsx View on Github external
.catch(error => {
                const message = getApiErrorMessage(error);
                this.setState({
                    errorMessage: message,
                    showMessageBar: true
                });
            });
    }