/Engine/Source/Editor/UnrealEd/Public/Kismet2/KismetDebugUtilities.h
This doesn't work properly if there is more than one blueprint editor open at once either (one will consume it, the others will be left in the cold)
static [FText](API\Runtime\Core\Internationalization\FText) GetAndClearLastExceptionMessage()