This repository has been archived by the owner on Sep 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1.0.1: Optimize imports, add exception handling, fix region resize gl…
…itch, add more instructions
- Loading branch information
1 parent
f13fbe1
commit 1e43e90
Showing
8 changed files
with
335 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#ifndef QB_EXCEPTION_H | ||
#define QB_EXCEPTION_H | ||
|
||
#include <exception> | ||
#include <string> | ||
#include <utility> | ||
|
||
class qb_exception : public std::exception { | ||
private: | ||
std::string errorMessage; | ||
public: | ||
explicit qb_exception(std::string message) : errorMessage(std::move(message)) {} | ||
|
||
[[nodiscard]] const char* what() const noexcept override { | ||
return errorMessage.c_str(); | ||
} | ||
}; | ||
|
||
#endif |
Oops, something went wrong.