| 
    HephAudio v3.1.0
    
   A cross-platform C++ library for recording, playing, and processing audio on Windows, Android, Linux, iOS, and macOS. 
   | 
 
stores exception information. Base class for exceptions. More...
#include <Exception.h>
  
Public Member Functions | |
| Exception () | |
| Exception (const std::string &method, const std::string &message) | |
| virtual | ~Exception ()=default | 
| virtual const char * | what () const noexcept override | 
| virtual std::string | GetName () const | 
| virtual const std::string & | GetMethod () const | 
| virtual const std::string & | GetMessage () const | 
| virtual void | Raise (const void *pSender) const | 
Static Public Member Functions | |
| 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 | |
| static Event | OnException = Event() | 
Protected Member Functions | |
| virtual void | AddToExceptions () const | 
Protected Attributes | |
| std::string | method | 
| std::string | message | 
stores exception information. Base class for exceptions.
| Heph::Exception::Exception | ( | ) | 
creates a new instance and initializes it with default values.
| Heph::Exception::Exception | ( | 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. | 
      
  | 
  virtualdefault | 
releases the resources and destroys the instance.
      
  | 
  virtual | 
gets the human readable name of the exception.
Reimplemented in Heph::ExternalException, Heph::InsufficientMemoryException, Heph::InvalidArgumentException, Heph::InvalidOperationException, Heph::NotFoundException, Heph::NotImplementedException, Heph::NotSupportedException, and Heph::TimeoutException.
      
  | 
  virtual | 
gets the method.
      
  | 
  virtual | 
gets the message.
      
  | 
  virtual | 
raises the OnException event.
| pSender | pointer to the object instance that caused the exception. | 
      
  | 
  protectedvirtual | 
adds the exception to the thread local exceptions vector.
Reimplemented in Heph::ExternalException, Heph::InsufficientMemoryException, Heph::InvalidArgumentException, Heph::InvalidOperationException, Heph::NotFoundException, Heph::NotImplementedException, Heph::NotSupportedException, and Heph::TimeoutException.
      
  | 
  staticnoexcept | 
gets the last exception, or nullptr if no exception raised.
      
  | 
  staticnoexcept | 
gets the exceptions that occurred in the current thread.
      
  | 
  static | 
the default handler for the OnException event.
      
  | 
  protected | 
name of the method where the exception occurred.
      
  | 
  protected | 
description of the exception.