Editor/Embedded/ZstdSharp/ZstdException.cs

Exception type for the embedded ZstdSharp library used in the Editor. It wraps a ZSTD_ErrorCode and message and exposes the code via a read-only property.

Native Interop
#nullable enable
using System;
using System.Collections.Generic;
using System.Linq;
using HumanoidRetargeter.EditorTools.Embedded.ZstdSharp.Unsafe;

namespace HumanoidRetargeter.EditorTools.Embedded.ZstdSharp;

    public class ZstdException : Exception
    {
        public ZstdException(ZSTD_ErrorCode code, string message) : base(message)
            => Code = code;

        public ZSTD_ErrorCode Code { get; }
    }