Skip to content

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.

C#
public sealed class AssetLoadException : Exception, ISerializable

Inheritance

object ← Exception ← AssetLoadException

Implements

ISerializable

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.

C#
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.

C#
public string AssetPath { get; }

Property Value

string

Kind

What the game asked for it as (“texture”, “atlas”, “font”, “sound”…): the loader’s kind.

C#
public string Kind { get; }

Property Value

string