Video Effects SDK 2.6.0.118490
AI-powered SDK for real-time video enhancement.
Loading...
Searching...
No Matches
tsvb::IError Class Referenceabstract

Error description. More...

#include <vb_sdk/error.h>

Inheritance diagram for tsvb::IError:
[legend]

Public Member Functions

virtual const char * description () const =0
 Returns a null-terminated UTF-8 string with the description of the error.
virtual NativeErrorType nativeErrorType () const =0
 Returns the type of the contained native error.
virtual void * nativeError () const =0
 Returns the contained native error, see nativeErrorType().
Public Member Functions inherited from tsvb::IRelease
virtual void release ()=0
 Releases the memory that was allocated for the object.

Detailed Description

Error description.

IError* error = authResult->obtainError();
NSError* nsError = (__bridge NSError*)error->nativeError();
// If ARC is not enabled: [nsError retain];
error->release();
Error description.
Definition error.h:24
@ error
An error occurred: the web request failed or the key is not valid.
Definition sdk_factory.h:31
@ nsError
Contains an instance of NSError.
Definition error.h:12

Member Function Documentation

◆ description()

virtual const char * tsvb::IError::description ( ) const
pure virtual

Returns a null-terminated UTF-8 string with the description of the error.

The string stays valid as long as the IError.

◆ nativeError()

virtual void * tsvb::IError::nativeError ( ) const
pure virtual

Returns the contained native error, see nativeErrorType().

◆ nativeErrorType()

virtual NativeErrorType tsvb::IError::nativeErrorType ( ) const
pure virtual

Returns the type of the contained native error.


The documentation for this class was generated from the following file: