You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

22 lines
561 B

#pragma once
#include <exception>
#include <string>
namespace std _GLIBCXX_VISIBILITY(default) {
class zexception : public exception {
string m_ecodeinfo = "";
int32_t m_ecode = 0;
public:
/** Takes a character string describing the error. */
explicit zexception(int32_t ecode, const string& __arg) {
m_ecodeinfo = __arg;
m_ecode = ecode;
}
const char* what() const noexcept override { return m_ecodeinfo.c_str(); }
int32_t ecode() const noexcept { return m_ecode; }
};
} // namespace std _GLIBCXX_VISIBILITY(default)