Future API #2

This lesson will help with handling errors and exceptions in Future API.

Error handling - Future API

Future API uses chaining to handle exceptions. The error is caught and handled in a catchError() block. The catchError() is chained with the then() method.

Calling the asynchronous function makeDataCall() from main().

Get hands-on with 1200+ tech skills courses.