LeviLamina
Loading...
Searching...
No Matches
IPrinter.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace Scripting { struct BaseError; }
8namespace Scripting { struct ContextId; }
9// clang-format on
10
11namespace Scripting {
12
13class IPrinter {
14public:
15 // virtual functions
16 // NOLINTBEGIN
17 virtual ~IPrinter() = default;
18
19 virtual void onInfo(::Scripting::ContextId contextId, ::std::string_view message) const;
20
21 virtual void onWarn(::Scripting::ContextId contextId, ::std::string_view message) const;
22
23 virtual void onError(::Scripting::ContextId contextId, ::std::string_view message) const;
24
25 virtual void onException(
26 ::Scripting::ContextId contextId,
27 ::Scripting::BaseError const& error,
28 ::entt::meta_any const& errorAny
29 ) const;
30
31 virtual bool shouldPrintException(
32 ::Scripting::ContextId contextId,
33 ::Scripting::BaseError const& error,
34 ::entt::meta_any const& errorAny
35 ) const;
36
37 virtual void onPromiseRejection(
38 ::Scripting::ContextId contextId,
39 ::Scripting::BaseError const& error,
40 ::entt::meta_any const& errorAny,
41 bool isHandled
42 ) const;
43 // NOLINTEND
44
45public:
46 // virtual function thunks
47 // NOLINTBEGIN
48 MCFOLD void $onInfo(::Scripting::ContextId contextId, ::std::string_view message) const;
49
50 MCFOLD void $onWarn(::Scripting::ContextId contextId, ::std::string_view message) const;
51
52 MCFOLD void $onError(::Scripting::ContextId contextId, ::std::string_view message) const;
53
54 MCFOLD bool $shouldPrintException(
55 ::Scripting::ContextId contextId,
56 ::Scripting::BaseError const& error,
57 ::entt::meta_any const& errorAny
58 ) const;
59
60
61 // NOLINTEND
62};
63
64} // namespace Scripting
Definition IPrinter.h:13
Definition BaseError.h:12
Definition ContextId.h:7