Samchon Framework for CPP  1.0.0
ErrorEvent.hpp
1 #pragma once
2 #include <samchon/API.hpp>
3 
4 #include <samchon/library/Event.hpp>
5 
6 #include <string>
7 
8 namespace samchon
9 {
10 namespace library
11 {
19  class SAMCHON_FRAMEWORK_API ErrorEvent
20  : public Event
21  {
22  private:
23  typedef Event super;
24 
25  enum : int
26  {
27  ACTIVATE = 1,
28  COMPLETE = 2,
29  REMOVED = -1
30  };
31 
32  protected:
36  std::string message;
37 
38  public:
39  enum : int
40  {
41  ERROR = 0
42  };
43 
51  ErrorEvent(EventDispatcher *, const std::string &);
52  virtual ~ErrorEvent() = default;
53 
57  auto getMessage() const->std::string;
58  };
59 };
60 };
std::string message
Error message.
Definition: ErrorEvent.hpp:36
Event representing an error.
Definition: ErrorEvent.hpp:19
Represent an event running on background.
Definition: Event.hpp:42
Abstract class for dispatching Event.
Top level namespace of products built from samchon.
Definition: ByteArray.hpp:7