Terraria ModLoader  0.10.1.5
A framework for Terraria mods
Terraria.ModLoader.Exceptions.MissingResourceException Class Reference
+ Inheritance diagram for Terraria.ModLoader.Exceptions.MissingResourceException:
+ Collaboration diagram for Terraria.ModLoader.Exceptions.MissingResourceException:

Public Member Functions

 MissingResourceException ()
 
 MissingResourceException (string message)
 
 MissingResourceException (string message, Exception inner)
 
 MissingResourceException (string message, ICollection< string > keys)
 

Static Public Member Functions

static string ProcessMessage (string message, ICollection< string > keys)
 

Public Attributes

override string HelpLink => "https://github.com/blushiemagic/tModLoader/wiki/Basic-tModLoader-Modding-FAQ#terrariamodloadermodgettexturestring-name-error"
 

Detailed Description

Definition at line 8 of file MissingResourceException.cs.

Constructor & Destructor Documentation

Terraria.ModLoader.Exceptions.MissingResourceException.MissingResourceException ( )

Definition at line 12 of file MissingResourceException.cs.

12  {
13  }
Terraria.ModLoader.Exceptions.MissingResourceException.MissingResourceException ( string  message)

Definition at line 15 of file MissingResourceException.cs.

16  : base(message) {
17  }
Terraria.ModLoader.Exceptions.MissingResourceException.MissingResourceException ( string  message,
Exception  inner 
)

Definition at line 19 of file MissingResourceException.cs.

20  : base(message, inner) {
21  }
Terraria.ModLoader.Exceptions.MissingResourceException.MissingResourceException ( string  message,
ICollection< string >  keys 
)

Definition at line 23 of file MissingResourceException.cs.

23  : this(ProcessMessage(message, keys)) {
24  }
static string ProcessMessage(string message, ICollection< string > keys)

Member Function Documentation

static string Terraria.ModLoader.Exceptions.MissingResourceException.ProcessMessage ( string  message,
ICollection< string >  keys 
)
static

Definition at line 26 of file MissingResourceException.cs.

26  {
27  string closestMatch = "";
28  closestMatch = LevenshteinDistance.FolderAwareEditDistance(message, keys.ToArray());
29  if (closestMatch != null && closestMatch != "") {
30  return Language.GetTextValue("tModLoader.LoadErrorResourceNotFoundPathHint", message, closestMatch) + "\n";
31  }
32  return message;
33  }

Member Data Documentation

override string Terraria.ModLoader.Exceptions.MissingResourceException.HelpLink => "https://github.com/blushiemagic/tModLoader/wiki/Basic-tModLoader-Modding-FAQ#terrariamodloadermodgettexturestring-name-error"

Definition at line 10 of file MissingResourceException.cs.