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

The errors reported by the Millicast SDK. More...

#include <error.h>

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

Public Member Functions

 Error ()=default
 
 Error (Error &&) noexcept=default
 
 Error (const Error &)=default
 
Erroroperator= (Error &&) noexcept=default
 
Erroroperator= (const Error &)=default
 
 Error (int val, const std::error_category &cat) noexcept
 
 Error (int val, const std::error_category &cat, const std::string &error_reason)
 
 Error (const std::exception_ptr &exception) noexcept
 
template<typename EnumT , typename X = std::enable_if_t<std::is_error_condition_enum<EnumT>::value, void>>
 Error (EnumT value)
 
template<typename EnumT , typename X = std::enable_if_t<std::is_error_condition_enum<EnumT>::value, void>>
 Error (EnumT value, const std::string &reason)
 
template<typename EnumT , typename X = std::enable_if_t<std::is_error_condition_enum<EnumT>::value, void>>
bool operator== (EnumT val) const
 
const std::string & message () const
 Get the error message.
 

Detailed Description

The errors reported by the Millicast SDK.

The Error extends the std::error_condition class, refer to the std::error_condition documentation for basic usage principles.

Additionally, Error can carry a custom per-instance message string.

Constructor & Destructor Documentation

◆ Error() [1/8]

millicast::Error::Error ( )
default

◆ Error() [2/8]

millicast::Error::Error ( Error &&  )
defaultnoexcept

◆ Error() [3/8]

millicast::Error::Error ( const Error )
default

◆ Error() [4/8]

millicast::Error::Error ( int  val,
const std::error_category &  cat 
)
noexcept

◆ Error() [5/8]

millicast::Error::Error ( int  val,
const std::error_category &  cat,
const std::string &  error_reason 
)

◆ Error() [6/8]

millicast::Error::Error ( const std::exception_ptr &  exception)
noexcept

◆ Error() [7/8]

template<typename EnumT , typename X = std::enable_if_t<std::is_error_condition_enum<EnumT>::value, void>>
millicast::Error::Error ( EnumT  value)
inline

◆ Error() [8/8]

template<typename EnumT , typename X = std::enable_if_t<std::is_error_condition_enum<EnumT>::value, void>>
millicast::Error::Error ( EnumT  value,
const std::string &  reason 
)
inline

Member Function Documentation

◆ message()

const std::string & millicast::Error::message ( ) const
inline

Get the error message.

Returns
the error message.

◆ operator=() [1/2]

Error & millicast::Error::operator= ( const Error )
default

◆ operator=() [2/2]

Error & millicast::Error::operator= ( Error &&  )
defaultnoexcept

◆ operator==()

template<typename EnumT , typename X = std::enable_if_t<std::is_error_condition_enum<EnumT>::value, void>>
bool millicast::Error::operator== ( EnumT  val) const
inline

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