Rollback999

What's the Best Way to Handle Multiple Asynchronous Errors Within a Single Page?

Asked by Rollback999 2 years ago errors asynchronous


Pablo G
0
 
For DataBase or Network errors you can write code that will catch those errors and display an alert message.

Here's a corresponding JavaScript Code Snippet:

If (response.error) {
    if (response.error === 'some type') {
        showStatusMessage('Network/DB down');
        startPollingNetworkDBStatus();
    } else {
        // Additional error handling...
    }
}

by Pablo G 2 years ago

Answer this question

What's the Best Way to Handle Multiple Asynchronous Errors Within a Single Page?

0 errors found:

 
0