using System; using System.Collections.Generic; namespace AssetRipper.MeshSharp.FBX.Exceptions { /// /// An error with the FBX data input /// public class FbxException : Exception { /// /// An error at a binary stream offset /// /// /// public FbxException(long position, string message) : base($"{message}, near offset {position}") { } /// /// An error in a text file /// /// /// /// public FbxException(int line, int column, string message) : base($"{message}, near line {line} column {column}") { } /// /// An error in a node object /// /// /// /// public FbxException(Stack nodePath, int propertyID, string message) : base(message + ", at " + string.Join("/", nodePath.ToArray()) + (propertyID < 0 ? "" : $"[{propertyID}]")) { } } }