yasmine
behavior_exception.hpp
Go to the documentation of this file.
1 // //
3 // This file is part of the Seadex yasmine ecosystem (http://yasmine.seadex.de). //
4 // Copyright (C) 2016-2017 Seadex GmbH //
5 // //
6 // Licensing information is available in the folder "license" which is part of this distribution. //
7 // The same information is available on the www @ http://yasmine.seadex.de/Licenses.html. //
8 // //
10 
11 
12 #ifndef BEHAVIOR_EXCEPTION_626C2339_34D7_4BC1_A01A_DB4C0914AA6C
13 #define BEHAVIOR_EXCEPTION_626C2339_34D7_4BC1_A01A_DB4C0914AA6C
14 
15 
16 #include "essentials/exception.hpp"
17 #include "essentials/non_copyable.hpp"
18 
19 #include "event_fwd.hpp"
20 #include "event_id.hpp"
22 
23 
24 namespace sxy
25 {
26 
27 
28 class behavior_exception SX_FINAL:
29  public sxe::exception
30 {
31 
32 
33 public:
34  explicit behavior_exception( const event_sptr& _event );
35  virtual ~behavior_exception() SX_NOEXCEPT SX_OVERRIDE;
36  SX_NO_ASSIGNMENT_OPERATOR( behavior_exception )
37  const event_sptr get_error_event() const;
38 
39 
40 private:
41  const event_sptr error_event_;
42 };
43 
44 
45 }
46 
47 
48 #endif
Definition: adapter_cpp11.hpp:21
sxe::shared_ptr< event > event_sptr
Definition: event_fwd.hpp:25