Error Types
The Narada SDK raises specific exceptions for different error conditions. All errors inherit fromNaradaError.
Error Handling Examples
Look at the following examples to see how to handle different errors.NaradaTimeoutError
NaradaTimeoutError
Raised when operations exceed timeout limits.
NaradaUnsupportedBrowserError
NaradaUnsupportedBrowserError
Raised when using an unsupported browser.
NaradaExtensionMissingError
NaradaExtensionMissingError
Raised when the Chrome extension is not installed.
NaradaExtensionUnauthenticatedError
NaradaExtensionUnauthenticatedError
Raised when the extension is not signed in.
NaradaInitializationError
NaradaInitializationError
Raised when SDK initialization fails.
Retry Pattern
For transient errors, implement retry logic:Best Practices
Catch Specific Errors
Handle specific error types rather than generic exceptions
Implement Retries
Use retry logic for timeout and initialization errors
Log Errors
Log errors with context for debugging
Graceful Degradation
Design fallback behavior when automation fails