You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
568 B
19 lines
568 B
using System;
|
|
|
|
namespace Trash.Config
|
|
{
|
|
public class ConfigurationException : Exception
|
|
{
|
|
public ConfigurationException(string propertyName, Type deserializableType, string msg)
|
|
: base($"An exception occurred while deserializing type '{deserializableType}' " +
|
|
$"for YML property '{propertyName}': {msg}")
|
|
{
|
|
PropertyName = propertyName;
|
|
DeserializableType = deserializableType;
|
|
}
|
|
|
|
public string PropertyName { get; }
|
|
public Type DeserializableType { get; }
|
|
}
|
|
}
|