HephAudio v3.0.6
A cross-platform C++ library for recording, playing, and processing audio on Windows, Android, Linux, iOS, and macOS.
Loading...
Searching...
No Matches
Heph::NotFoundException Class Reference

raised when a search fails. More...

#include <NotFoundException.h>

Inheritance diagram for Heph::NotFoundException:
Heph::Exception

Public Member Functions

 NotFoundException ()
 
 NotFoundException (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< ExceptionGetLastException () noexcept
 
static std::vector< std::shared_ptr< Exception > > & GetExceptions () noexcept
 
static void DefaultHandler (const EventParams &params)
 
- Static Public Attributes inherited from Heph::Exception
static Event OnException = Event()
 
- Protected Attributes inherited from Heph::Exception
std::string method
 
std::string message
 

Detailed Description

raised when a search fails.

Constructor & Destructor Documentation

◆ NotFoundException() [1/2]

Heph::NotFoundException::NotFoundException ( )

creates a new instance and initializes it with default values.

◆ NotFoundException() [2/2]

Heph::NotFoundException::NotFoundException ( const std::string & method,
const std::string & message )

creates a new instance and initializes it with the provided values.

Parameters
methodname of the method where the exception occurred.
messagedescription of the exception.

Member Function Documentation

◆ GetName()

virtual std::string Heph::NotFoundException::GetName ( ) const
overridevirtual

gets the human readable name of the exception.

Reimplemented from Heph::Exception.

◆ AddToExceptions()

virtual void Heph::NotFoundException::AddToExceptions ( ) const
overrideprotectedvirtual

adds the exception to the thread local exceptions vector.

Reimplemented from Heph::Exception.