Files
UnrealEngine/Engine/Source/Programs/UnrealGameSync/UnrealGameSyncCmd/Exceptions/UserErrorException.cs
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

27 lines
528 B
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using System;
using EpicGames.Core;
using Microsoft.Extensions.Logging;
namespace UnrealGameSyncCmd.Exceptions
{
public sealed class UserErrorException : Exception
{
public LogEvent Event { get; }
public int Code { get; }
public UserErrorException(LogEvent evt)
: base(evt.ToString())
{
Event = evt;
Code = 1;
}
public UserErrorException(string message, params object[] args)
: this(LogEvent.Create(LogLevel.Error, message, args))
{
}
}
}