My Project
exception.h
Go to the documentation of this file.
1 #pragma once
2 #include <exception>
3 
4 class BaseException : public std::exception
5 {
6 public:
7  virtual const char* what() const = 0;
8 };
9 
11 {
12 public:
13  virtual const char* what() const
14  {
15  return "Can't allocate memory!";
16  }
17 };
18 
20 {
21 public:
22  virtual const char* what() const
23  {
24  return "Choose model from select field first!";
25  }
26 };
virtual const char * what() const
Definition: exception.h:22
virtual const char * what() const =0
virtual const char * what() const
Definition: exception.h:13