This site requires javascript to be enabled.

Managing exceptions

Results for

Results for Searching

What is an exception?

Exceptions refer to the mechanism used by software development kits (SDKs) to handle and communicate errors or exceptional conditions that may occur during the code execution. When an error occurs within an SDK, instead of the error multiplying through the code and causing unexpected behavior or crashing the program, the SDK raises an exception.

Exception handling

An exception contains information about the error, such as its type, description, and sometimes a stack trace showing the sequence of method calls that led to the exception. When an exception is raised in an SDK, the calling code can use exception-handling techniques to appropriately catch and respond to the error. This allows for more controlled and predictable error handling, as the calling code can decide how to handle the exception, whether to display an error message, retry the operation, or take any other necessary action.

Choose the Server SDK you use from the list below to see the exception handling guide: