Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
AssetLoadException.cs
Go to the documentation of this file.
1using System;
2
3namespace ReLogic.Content;
4
7{
8 private AssetLoadException(string text, Exception innerException)
9 : base(text, innerException)
10 {
11 }
12
13 public static AssetLoadException FromMissingAsset(string assetName, Exception innerException = null)
14 {
15 return new AssetLoadException("Asset could not be found: \"" + assetName + "\"", innerException);
16 }
17
19 {
20 return new AssetLoadException("Asset Reader " + typeof(TReaderType).Name + " is unable to read " + typeof(TAssetType).Name, null);
21 }
22
23 public static AssetLoadException FromMissingReader(string extension)
24 {
25 return new AssetLoadException("Unable to find asset reader for type " + extension + ".", null);
26 }
27}
static AssetLoadException FromMissingReader(string extension)
static AssetLoadException FromMissingAsset(string assetName, Exception innerException=null)
AssetLoadException(string text, Exception innerException)
static AssetLoadException FromInvalidReader< TReaderType, TAssetType >()