private static string ExceptionMessage(PatchRunContext context) { return($"Error executing instructions for {(context.PatchType?.Type ?? "unknown patch type")} in {(context.Loader?.Name ?? "unknown")} loader"); }
internal AssetInstructionException(PatchRunContext context, Exception inner) : base(ExceptionMessage(context), inner) { }
internal AssetInstructionException(PatchRunContext context) : base(ExceptionMessage(context)) { }