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);
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
DeviceException(const std::string &message, const std::string &file, int line)
Creates a new DeviceException object.
DeviceException(const DeviceException &exception)
Copy constructor.
const std::string m_message
A message describing the problem.
Definition Exception.h:52
virtual std::string getDebugMessage() const
Returns the error message plus file and line number for debugging purposes.
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
virtual const char * what() const AUD_NOEXCEPT
Returns the error message.
Exception(const std::string &message, const std::string &file, int line)
Creates a new Exception object.
virtual ~Exception() AUD_NOEXCEPT
Destroys the object.
const std::string & getFile() const
Returns the file in which the exception was thrown.
int getLine() const
Returns the line where the exception was originally thrown.
const std::string & getMessage() const
Returns the error message.
Exception(const Exception &exception)
Copy constructor.
FileException(const FileException &exception)
Copy constructor.
FileException(const std::string &message, const std::string &file, int line)
Creates a new FileException object.
StateException(const StateException &exception)
Copy constructor.
StateException(const std::string &message, const std::string &file, int line)
Creates a new StateException object.