Table of Contents

Class AssetNotFoundException

Namespace
VpnHood.Net.Toolkit.Assets
Assembly
VpnHood.Net.Toolkit.dll

The exception that is thrown when there is no asset at a path. A type of its own, so the wording cannot drift and a caller that only asks can catch this and nothing else: a file that exists but will not open is a different failure.

public class AssetNotFoundException : FileNotFoundException, ISerializable
Inheritance
AssetNotFoundException
Implements
Inherited Members

Constructors

AssetNotFoundException(string, Exception?)

The exception that is thrown when there is no asset at a path. A type of its own, so the wording cannot drift and a caller that only asks can catch this and nothing else: a file that exists but will not open is a different failure.

public AssetNotFoundException(string assetPath, Exception? innerException = null)

Parameters

assetPath string

The asset's path, also the exception's FileName.

innerException Exception

The exception that is the cause of this one, or null.