ProviewError through the global Proview.onError handler.
The error object
Error types
Severity is decided per occurrence, so the same
code can arrive as critical in one situation and warning in another. Read type on every error rather than assuming a fixed severity per code.
Error codes
The playback module raises its own codes instead of these — see Playback → Errors.
Session
API
Authentication
Resource
Configuration
Known messages
The SDK ships fixed message strings for the codes below.
For the remaining codes the
message comes from the underlying failure — an API response body, a network error — rather than from this catalogue.
Validation errors
When a configuration object fails schema validation, the SDK attachesvalidationErrors:
validationErrors is a single object, not an array.Handling errors
Register one handler beforeProview.init(), then switch on code:
onError. Wrap callback bodies in their own try/catch. See Best Practices.
