using System; using System.Reflection; namespace NETCoreSyncServer { public class NETCoreSyncServerException : Exception { public NETCoreSyncServerException(string message) : base(message) { } } public class NETCoreSyncServerMissingSyncPropertyAttributeException : Exception { public NETCoreSyncServerMissingSyncPropertyAttributeException(SyncPropertyAttribute.PropertyIndicatorEnum propertyIndicator, Type type) : base($"Missing Property with {nameof(SyncPropertyAttribute)} ({nameof(SyncPropertyAttribute.PropertyIndicator)}: {propertyIndicator.ToString()}) defined for Type: {type.FullName}") { } } public class NETCoreSyncServerMismatchPropertyTypeException : Exception { public NETCoreSyncServerMismatchPropertyTypeException(PropertyInfo propertyInfo, Type expectedType, Type type) : base($"Mismatch Property Type for Property: {propertyInfo.Name} ({propertyInfo.PropertyType.Name}) for Type: {type.FullName}. Expected Property Type: {expectedType.ToString()}") { } } }