Files
LuaCsForBarotraumaEP/Barotrauma/BarotraumaShared/SharedSource/ContentManagement/MissingContentPackageException.cs
Markus Isberg 7547a9b78a Build 0.18.0.0
2022-05-13 00:55:52 +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.";
}
}
}