API Reference · Model and texture loading

GltfException

Namespace: Ava3D

public sealed class GltfException : Exception

A glTF file could not be read at all — it is not glTF, it is a version this reader does not know, its container is malformed — or it was read with GltfLoadOptions.Validate set and something in it had to be dropped.

Constructors

MemberDescription
GltfException(string message)

Builds the exception with a message.

GltfException(string message, Exception innerException)

Builds the exception with a message and the failure underneath it.

Properties

MemberDescription
IReadOnlyList<GltfDiagnostic> Diagnostics { get; }

What validation objected to. Empty for a file that could not be read at all, where there is nothing finer to say than Exception.Message.

See also