Skip to main content

Handling results and errors

This guide explains how to handle scan results and errors in your application, ensuring a smooth user experience. With version 8.0.0, all SDK errors are thrown as instances of the SBError class, making error handling more consistent and predictable. Follow the steps below to learn best practices for managing results and handling errors in different UI integrations.

Handling errors

Here's an example of how to handle errors when working with the SDK:

Example of handling errors
loading...

Handling errors in RTU UI

When using Ready-To-Use (RTU) UI components, you can handle errors as shown in the example below:

Example of handling errors in Ready-To-Use UI
loading...

Want to scan longer than one minute?

Generate a free trial license to test the Scanbot SDK thoroughly.

Get free trial license