Files
LuaCsForBarotraumaEP/Barotrauma/BarotraumaShared/SharedSource/ContentManagement/MissingContentPackageException.cs
2022-03-30 00:08:09 +09:00

18 lines
528 B
C#

#nullable enable
using System;
namespace Barotrauma
{
public sealed class MissingContentPackageException : Exception
{
public override string Message { get; }
public MissingContentPackageException(ContentPackage? whoAsked, string? missingPackage)
{
Message = $"\"{whoAsked?.Name ?? "[NULL]"}\" depends on a package " +
$"with name or ID \"{missingPackage ?? "[NULL]"}\" " +
$"that is not currently enabled.";
}
}
}