UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
OutputDeviceError.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreTypes.h"
6#include "Misc/OutputDevice.h"
7
8// Error device.
10{
11public:
12 virtual bool CanBeUsedOnPanicThread() const override
13 {
14 return true;
15 }
16
17 virtual void HandleError()=0;
18
21 {
22 ProgramCounter = InProgramCounter;
23 }
24
25 /* Returns the instruction location of where an error occurred */
27 {
28 return ProgramCounter;
29 }
30
31private:
32 void* ProgramCounter = nullptr;
33};
34
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition OutputDeviceError.h:10
virtual bool CanBeUsedOnPanicThread() const override
Definition OutputDeviceError.h:12
void * GetErrorProgramCounter() const
Definition OutputDeviceError.h:26
void SetErrorProgramCounter(void *InProgramCounter)
Definition OutputDeviceError.h:20
virtual void HandleError()=0
Definition OutputDevice.h:133