14#include "CoreMinimal.h"
15#include "HAL/ThreadSafeBool.h"
16#include "Widgets/SWidget.h"
17#include "Widgets/SWindow.h"
58 TSharedPtr<const SWidget>
Parent = {};
125 auto InferParentWidget() -> TSharedPtr<const SWidget>;
127 TSharedPtr<SWindow> ModalWindow;
128 FThreadSafeBool bIsDisplayingError;
Auto Modular Features are a workflow with Modular Features where the developer doesn't have to rely o...
"Extension" of a common TMulticastDelegate. It allows to define optional "flags" when adding a bindin...
Global facilities for IError handling, including displaying them to the user, trigger error events,...
static FErrorManager & Get()
Get the global singleton.
EDisplayErrorResult
The results of displaying an error. In all cases the error is logged.
@ Displayed
The error has been displayed for the user.
@ Suppressed_AnotherErrorOpen
The error has not been shown to the user because another error is already being shown.
@ Suppressed_CannotDisplayModalWindow
Modal windows couldn't be created at the time, so we couldn't show it to the user either.
TEventDelegate< void()> OnErrorDialogDismissed
auto DisplayError(IErrorRef const &error, FDisplayErrorArgs const &args) -> TFuture< EDisplayErrorResult >
Display the error summary for the user. Only use this when your program arrives to an unrecoverable s...
A modular feature which allows other modules to inject their own UI into error windows displayed to t...
virtual TSharedPtr< SWidget > PreErrorDisplay(IErrorRef const &error, FDisplayErrorArgs const &displayArgs)
virtual bool SupportsError(IErrorRef const &error, FDisplayErrorArgs const &displayArgs)
virtual TSharedPtr< SWidget > PostErrorDisplay(IErrorRef const &error, FDisplayErrorArgs const &displayArgs)
Contains utilities for structured error handling.
TSharedRef< IError > IErrorRef
Convenience alias for an instance of an error.
Control how an error is being displayed. Use C++ 20 designated initializers for convenience.
TSharedPtr< const SWidget > Parent
Optionally set a parent widget for the modal window of the error. By default if not specified here th...
bool bLogError
Set this to false if for any reason you don't need the error to be logged before displaying it to the...
bool bAsync
The error message will not block the engine tick. This is useful for errors happening in the editor s...
bool bBreakDebugger
Set this to false if for any reason you don't need the debugger to break before displaying the error ...
bool bImportantToRead
Enables an extra checkbox which reminds the user to please do not immediately dismiss the error.