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
ExternalException.h
Go to the documentation of this file.
1#pragma once
2#include "HephShared.h"
3#include "Exception.h"
4
7namespace Heph
8{
14 {
15 protected:
20 std::string externalSource;
21
26 std::string externalMessage;
27
28 public:
31
38 ExternalException(const std::string& method, const std::string& message, const std::string& externalSource, const std::string& externalMessage);
39
40 virtual std::string GetName() const override;
41
46 virtual const std::string& GetExternalSource() const;
47
52 virtual const std::string& GetExternalMessage() const;
53
54 protected:
55 virtual void AddToExceptions() const override;
56 };
57}
#define HEPH_API
Definition HephShared.h:132
stores exception information. Base class for exceptions.
Definition Exception.h:40
raised when an operation from an external library/API fails.
Definition ExternalException.h:14
virtual std::string GetName() const override
std::string externalMessage
Definition ExternalException.h:26
virtual const std::string & GetExternalMessage() const
virtual void AddToExceptions() const override
std::string externalSource
Definition ExternalException.h:20
ExternalException(const std::string &method, const std::string &message, const std::string &externalSource, const std::string &externalMessage)
virtual const std::string & GetExternalSource() const