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
Exception.h File Reference
#include "HephShared.h"
#include "Event.h"
#include <exception>
#include <string>
#include <vector>
#include <memory>

Go to the source code of this file.

Classes

class  Heph::Exception
 stores exception information. Base class for exceptions. More...
 

Macros

#define HEPH_EXCEPTION_DEFAULT_HANDLER   &Heph::Exception::DefaultHandler
 
#define HEPH_RAISE_EXCEPTION(pSender, ex)   (ex).Raise((const void*)(pSender))
 
#define HEPH_RAISE_AND_THROW_EXCEPTION(pSender, ex)
 

Macro Definition Documentation

◆ HEPH_EXCEPTION_DEFAULT_HANDLER

#define HEPH_EXCEPTION_DEFAULT_HANDLER   &Heph::Exception::DefaultHandler

default handler for the OnException event.

◆ HEPH_RAISE_EXCEPTION

#define HEPH_RAISE_EXCEPTION ( pSender,
ex )   (ex).Raise((const void*)(pSender))

raises the ex but does not throw it.

◆ HEPH_RAISE_AND_THROW_EXCEPTION

#define HEPH_RAISE_AND_THROW_EXCEPTION ( pSender,
ex )
Value:
{ \
(ex).Raise((const void*)(pSender)); \
throw (ex); \
}

raises and throws the ex.