KernelAPI reference
Class AssetLoadException
Namespace: MicroEngine.Core
Assembly: MicroEngine.Content.dll
Guide: Game lifecycle and time
A content file that could not be loaded: missing, unreadable, in an unsupported format, or named with the wrong letter case.
public sealed class AssetLoadException : Exception, ISerializableInheritance
object ← Exception ← AssetLoadException
Implements
Inherited Members
Exception.GetBaseException(), Exception.ToString(), Exception.GetType(), Exception.TargetSite, Exception.Message, Exception.Data, Exception.InnerException, Exception.HelpLink, Exception.Source, Exception.HResult, Exception.StackTrace, object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
AssetLoadException(string, string, string, Exception?)
Records which asset failed and why.
public AssetLoadException(string assetPath, string kind, string message, Exception? inner = null)Parameters
assetPath string
kind string
message string
inner Exception?
Properties
AssetPath
The path the game asked for, relative to the content source.
public string AssetPath { get; }Property Value
Kind
What the game asked for it as (“texture”, “atlas”, “font”, “sound”…): the loader’s kind.
public string Kind { get; }