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:
@@ -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;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user