From 65d087e42d9d4a9da211a9649775e231b8773b8e Mon Sep 17 00:00:00 2001 From: masesdevelopers <94312179+masesdevelopers@users.noreply.github.com> Date: Tue, 17 Oct 2023 23:32:14 +0200 Subject: [PATCH] Fix names reported in exceptions --- src/net/KEFCore.SerDes.Avro/AvroKEFCoreSerDes.cs | 4 ++-- src/net/KEFCore.SerDes/DefaultKEFCoreSerDes.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/net/KEFCore.SerDes.Avro/AvroKEFCoreSerDes.cs b/src/net/KEFCore.SerDes.Avro/AvroKEFCoreSerDes.cs index 7353c6b2..b0a22816 100644 --- a/src/net/KEFCore.SerDes.Avro/AvroKEFCoreSerDes.cs +++ b/src/net/KEFCore.SerDes.Avro/AvroKEFCoreSerDes.cs @@ -61,7 +61,7 @@ public Binary() } else if (!typeof(T).IsArray) { - throw new InvalidOperationException($"{typeof(Binary<>).FullName} cannot manage {typeof(T).Name}, override or build a new serializaer"); + throw new InvalidOperationException($"{typeof(Binary<>).ToAssemblyQualified()} cannot manage {typeof(T).Name}, override or build a new serializaer"); } } @@ -127,7 +127,7 @@ public Json() } else if (!typeof(T).IsArray) { - throw new InvalidOperationException($"{typeof(Json<>).FullName} cannot manage {typeof(T).Name}, override or build a new serializaer"); + throw new InvalidOperationException($"{typeof(Json<>).ToAssemblyQualified()} cannot manage {typeof(T).Name}, override or build a new serializaer"); } } diff --git a/src/net/KEFCore.SerDes/DefaultKEFCoreSerDes.cs b/src/net/KEFCore.SerDes/DefaultKEFCoreSerDes.cs index 0da2ad04..6cd8a114 100644 --- a/src/net/KEFCore.SerDes/DefaultKEFCoreSerDes.cs +++ b/src/net/KEFCore.SerDes/DefaultKEFCoreSerDes.cs @@ -56,7 +56,7 @@ public Json() } else if (!typeof(T).IsArray) { - throw new InvalidOperationException($"KEFCoreSerDes cannot manage {typeof(T).Name}, override or build a new serializaer"); + throw new InvalidOperationException($"{typeof(Json<>).ToAssemblyQualified()} cannot manage {typeof(T).Name}, override or build a new serializaer"); } }