2026-27-cpp-homework/feladat5/feladat5/CMyStringException.h
2026-11-06 11:36:52 +01:00

15 lines
No EOL
523 B
C++

// Tóth Dániel Mátyás | IFPQYY | v1
#pragma once
#include <memory>
using namespace std;
class CMyStringException {
public:
CMyStringException(const char* input);
const char* what(void) const;
static constexpr const char* ErrOutOfRange = "Hiba: index hiba!";
static constexpr const char* ErrInvalidChar = "Hiba: érvénytelen karakter!";
static constexpr const char* ErrCount = "Hiba: karakterek száma 0!";
static constexpr const char* ErrUnexpected = "Hiba: Nem várt hiba!";
private:
unique_ptr<char[]> msg;
};