system_context_test.h 520 B

123456789101112131415161718192021222324
  1. #pragma once
  2. //
  3. // Copyright (c) 2019-2021 Ivan Baidakou (basiliscos) (the dot dmol at gmail dot com)
  4. //
  5. // Distributed under the MIT Software License
  6. //
  7. #include "rotor/system_context.h"
  8. namespace rotor {
  9. namespace test {
  10. struct system_context_test_t : public rotor::system_context_t {
  11. extended_error_ptr_t reason;
  12. system_context_test_t() {}
  13. inline virtual void on_error(actor_base_t *, const extended_error_ptr_t &ec_) noexcept override { reason = ec_; }
  14. };
  15. } // namespace test
  16. } // namespace rotor