Files
LuaCsForBarotraumaEP/Barotrauma/BarotraumaShared/SharedSource/ContentManagement/MissingContentPackageException.cs
T
2022-02-26 02:43:01 +09:00

18 lines
530 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 installed.";
}
}
}