Visual/text changes to error format output

This commit is contained in:
NaifBanana
2025-11-10 00:04:28 -06:00
parent 3f0486b889
commit 17624e9e3c
2 changed files with 3 additions and 13 deletions
+1 -11
View File
@@ -6,12 +6,7 @@
using namespace nb;
class TestError : public ErrorBase<TestError> {
public:
//TestError(unsigned int code, unsigned int line=0, const std::string& filename="")
// : ErrorBase<TestError>(code, ErrorBase<TestError>::lookup(code)) {}
//TestError(unsigned int code, const std::exception& trace, unsigned int line=0, const std::string& filename="")
// : ErrorBase<TestError>(code, ErrorBase<TestError>::lookup(code), trace, line, filename) {}
public:
using ErrorBase<TestError>::ErrorBase;
enum ErrorCodes : unsigned int {
@@ -30,11 +25,6 @@ const ErrorCodeMap TestError::ErrorMessages{
};
int main() {
//TestError d(TestError::ErrorCodes::D, std::out_of_range("hey"));
//TestError c(TestError::ErrorCodes::C, d);
//TestError b(TestError::ErrorCodes::B, c);
//TestError a(TestError::ErrorCodes::A, b);
//throw Error(Error::ErrorCodes::UNDEFINED, a);
try {
try {
try {