MillicastSDK 2.0.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
millicast::Exception Class Reference

#include <error.h>

Inheritance diagram for millicast::Exception:
Inheritance graph
[legend]
Collaboration diagram for millicast::Exception:
Collaboration graph
[legend]

Public Member Functions

 Exception (const Error &err)
 
 Exception (Error &&err)
 
const Errorget_error () const
 Get the Error object passed with this exception.
 

Detailed Description

The Millicast SDK exception.

Errors are being notified by the SDK by returning the Error objects to the Promise error callback. In rare circumstances where the SDK may throw, the thrown exception will be of type std::runtime_error, or millicast::Exception. The Exception class carries a proper Error instance.

Constructor & Destructor Documentation

◆ Exception() [1/2]

millicast::Exception::Exception ( const Error err)

◆ Exception() [2/2]

millicast::Exception::Exception ( Error &&  err)

Member Function Documentation

◆ get_error()

const Error & millicast::Exception::get_error ( ) const

Get the Error object passed with this exception.

Returns
the Error reference.

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