Handling Kotlin FDK Errors

How are errors handled in the Kotlin FDK?

Errors in Kotlin FDK client can be handled by catching exceptions during the configuration process. If an exception occurs, it will print out the exception message. Moreover, each client action such as getProductDetailBySlug or getCompanyDetail is designed to handle both response and error scenarios. In the event of an error, it will print out the error message. More details can be found from the official documentation.