HephAudio v3.0.6
A cross-platform C++ library for recording, playing, and processing audio on Windows, Android, Linux, iOS, and macOS.
|
raised when an operation takes too long to complete and reaches timeout. More...
#include <TimeoutException.h>
Public Member Functions | |
TimeoutException () | |
TimeoutException (const std::string &method, const std::string &message) | |
virtual std::string | GetName () const override |
Public Member Functions inherited from Heph::Exception | |
Exception () | |
Exception (const std::string &method, const std::string &message) | |
virtual | ~Exception ()=default |
virtual const char * | what () const noexcept override |
virtual const std::string & | GetMethod () const |
virtual const std::string & | GetMessage () const |
virtual void | Raise (const void *pSender) const |
Protected Member Functions | |
virtual void | AddToExceptions () const override |
Additional Inherited Members | |
Static Public Member Functions inherited from Heph::Exception | |
static std::shared_ptr< Exception > | GetLastException () noexcept |
static std::vector< std::shared_ptr< Exception > > & | GetExceptions () noexcept |
static void | DefaultHandler (const EventParams ¶ms) |
Static Public Attributes inherited from Heph::Exception | |
static Event | OnException = Event() |
Protected Attributes inherited from Heph::Exception | |
std::string | method |
std::string | message |
raised when an operation takes too long to complete and reaches timeout.
Heph::TimeoutException::TimeoutException | ( | ) |
creates a new instance and initializes it with default values.
Heph::TimeoutException::TimeoutException | ( | const std::string & | method, |
const std::string & | message ) |
creates a new instance and initializes it with the provided values.
method | name of the method where the exception occurred. |
message | description of the exception. |
|
overridevirtual |
gets the human readable name of the exception.
Reimplemented from Heph::Exception.
|
overrideprotectedvirtual |
adds the exception to the thread local exceptions vector.
Reimplemented from Heph::Exception.