//
//  PacketMissingHeaderError.cs
//
//  Copyright (c) František Boháček. All rights reserved.
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.
using NosSmooth.Packets;
using Remora.Results;
namespace NosSmooth.PacketSerializer.Errors;
/// 
/// Packet is missing header and thus cannot be serialized correctly.
/// 
/// The packet that is missing header.
public record PacketMissingHeaderError(IPacket Packet)
    : ResultError($"The packet {Packet.GetType().FullName} is missing a header and cannot be serialized.");