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

Error category for other errors. More...

#include <error.h>

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

Public Types

enum  Value {
  EXCEPTION_THROWN = 1 , INVALID_JSON , INVALID_JSON_SCHEMA , TRANSACTION_ERROR ,
  NO_CREDENTIALS , INVALID_OPTIONS , INVALID_STATE , REST_API_ERROR ,
  WEBSOCKET_HS_FAILED , PEERCONNECTION_CREATE , PEERCONNECTION_CREATE_OFFER , PEERCONNECTION_LOCAL_DESC ,
  PEERCONNECTION_REMOTE_DESC , PEERCONNECTION_ADD_TRACKS_FAILED , PEERCONNECTION_NOT_ESTABLISHED , PEERCONNECTION_SET_TRANSFORM_FAILED ,
  NULL_LISTENER , INVALID_MEDIA_PERMISSIONS
}
 

Public Member Functions

const char * name () const noexcept override
 
std::string message (int ev) const override
 

Additional Inherited Members

- Static Public Member Functions inherited from millicast::ErrorCategoryBase< GenericError >
static const GenericErrorinstance ()
 

Detailed Description

Error category for other errors.

Member Enumeration Documentation

◆ Value

Enumerator
EXCEPTION_THROWN 

Exception was thrown and not handled.

INVALID_JSON 

Signaling provided invalid JSON.

INVALID_JSON_SCHEMA 

Signaling provided JSON with missing or incorrect data

TRANSACTION_ERROR 

Signaling returned error for the request.

NO_CREDENTIALS 

No credentials are set.

INVALID_OPTIONS 

Invalid options set for the request.

INVALID_STATE 

Invalid state of the client.

REST_API_ERROR 

Director REST API returned an error.

WEBSOCKET_HS_FAILED 

Websocket not connected.

PEERCONNECTION_CREATE 

Can not create PeerConnection.

PEERCONNECTION_CREATE_OFFER 

Can not create PeerConnection offer.

PEERCONNECTION_LOCAL_DESC 

Can not set PeerConnection local description

PEERCONNECTION_REMOTE_DESC 

Can not set PeerConnection remote description

PEERCONNECTION_ADD_TRACKS_FAILED 

Can not add tracks.

PEERCONNECTION_NOT_ESTABLISHED 

PeerConnection was not established.

PEERCONNECTION_SET_TRANSFORM_FAILED 

Could not set transform on Sender/Receiver

NULL_LISTENER 

Listener not set while it should be.

INVALID_MEDIA_PERMISSIONS 

Invalid permissions for microphone, screen-share, camera.

Member Function Documentation

◆ message()

std::string millicast::GenericError::message ( int  ev) const
override

◆ name()

const char * millicast::GenericError::name ( ) const
overridenoexcept

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