Client LuaCsForBarotrauma
MissingContentPackageException.cs
1 #nullable enable
2 using System;
3 
4 namespace Barotrauma
5 {
6  public sealed class MissingContentPackageException : Exception
7  {
8  public override string Message { get; }
9 
10  public MissingContentPackageException(ContentPackage? whoAsked, string? missingPackage)
11  {
12  Message = $"\"{whoAsked?.Name ?? "[NULL]"}\" depends on a package " +
13  $"with name or ID \"{missingPackage ?? "[NULL]"}\" " +
14  $"that is not currently installed.";
15  }
16  }
17 }
MissingContentPackageException(ContentPackage? whoAsked, string? missingPackage)