Add PlaceholderResolutionException for unresolved placeholders

Introduced PlaceholderResolutionException in the ReC.Application.Common.Exceptions namespace. This exception provides detailed context when a placeholder cannot be resolved due to a missing property with a specific column name, including the placeholder, column name, and input string.
This commit is contained in:
2026-03-26 14:36:35 +01:00
parent a91e3264b4
commit 7a11ac3635

View File

@@ -0,0 +1,11 @@
namespace ReC.Application.Common.Exceptions;
public class PlaceholderResolutionException(string placeholder, string columnName, string input)
: Exception($"Failed to resolve placeholder '{placeholder}'. No object contains a property with column name '{columnName}'. Input: '{input}'")
{
public string Placeholder { get; } = placeholder;
public string ColumnName { get; } = columnName;
public string Input { get; } = input;
}