15 lines
No EOL
523 B
C++
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;
|
|
}; |