26#define AUD_NOEXCEPT noexcept
41#define AUD_THROW(exception, message) { throw exception(message, __FILE__, __LINE__); }
72 Exception(
const std::string &message,
const std::string &file,
int line);
89 virtual std::
string getDebugMessage() const;
95 const std::
string& getMessage() const;
101 const std::
string& getFile() const;
123 FileException(
const std::string &message,
const std::string &file,
int line);
The main header file of the library defining the namespace and basic data types.
#define AUD_NAMESPACE_END
Closes the audaspace namespace aud.
Definition Audaspace.h:119
#define AUD_NAMESPACE_BEGIN
Opens the audaspace namespace aud.
Definition Audaspace.h:116
#define AUD_API
Used for exporting symbols in the shared library.
Definition Audaspace.h:93
#define AUD_NOEXCEPT
Compatibility macro for noexcept.
Definition Exception.h:26
The DeviceException class is used for error cases in connection with devices, which usually happens w...
Definition Exception.h:140
DeviceException(const std::string &message, const std::string &file, int line)
Creates a new DeviceException object.
DeviceException(const DeviceException &exception)
Copy constructor.
The Exception class is the general exception base class.
Definition Exception.h:49
const std::string m_message
A message describing the problem.
Definition Exception.h:52
const std::string m_file
The source code file in which the exception was thrown.
Definition Exception.h:55
const int m_line
The source code line from which the exception was thrown.
Definition Exception.h:58
Exception(const std::string &message, const std::string &file, int line)
Creates a new Exception object.
virtual ~Exception() AUD_NOEXCEPT
Destroys the object.
Exception(const Exception &exception)
Copy constructor.
The FileException class is used for error cases in which files cannot be read or written due to unkno...
Definition Exception.h:115
FileException(const FileException &exception)
Copy constructor.
FileException(const std::string &message, const std::string &file, int line)
Creates a new FileException object.
The StateException class is used for error cases of sounds or readers with illegal states or requirem...
Definition Exception.h:166
StateException(const StateException &exception)
Copy constructor.
StateException(const std::string &message, const std::string &file, int line)
Creates a new StateException object.