24 lines
445 B
C++
24 lines
445 B
C++
#pragma once
|
|
|
|
#include <exception>
|
|
|
|
namespace audio {
|
|
|
|
class SLoadError : public std::exception {
|
|
bool badFile;
|
|
public:
|
|
#ifdef LIN_MODE
|
|
SLoadError(const char* msg, bool wasBadFile = false) : std::exception(), badFile(wasBadFile) {
|
|
#else
|
|
SLoadError(const char* msg, bool wasBadFile = false) : std::exception(msg, 0), badFile(wasBadFile) {
|
|
#endif
|
|
}
|
|
|
|
inline bool wasBadFile() const { return badFile; }
|
|
};
|
|
|
|
class NotThisType {
|
|
};
|
|
|
|
};
|