mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-14 09:23:53 +01:00
31 lines
457 B
C++
31 lines
457 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
namespace dxvk {
|
|
|
|
/**
|
|
* \brief DXVK error
|
|
*
|
|
* A generic exception class that stores a
|
|
* message. Exceptions should be logged.
|
|
*/
|
|
class DxvkError {
|
|
|
|
public:
|
|
|
|
DxvkError() { }
|
|
DxvkError(std::string&& message)
|
|
: m_message(std::move(message)) { }
|
|
|
|
const std::string& message() const {
|
|
return m_message;
|
|
}
|
|
|
|
private:
|
|
|
|
std::string m_message;
|
|
|
|
};
|
|
|
|
} |