- Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathSyncExceptions.cs
More file actions
Latest commit
26 lines (23 loc) · 1.06 KB
/
Copy pathSyncExceptions.cs
File metadata and controls
26 lines (23 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
usingSystem;
usingSystem.Reflection;
namespaceNETCoreSyncServer
{
publicclassNETCoreSyncServerException:Exception
{
publicNETCoreSyncServerException(stringmessage):base(message)
{
}
}
publicclassNETCoreSyncServerMissingSyncPropertyAttributeException:Exception
{
publicNETCoreSyncServerMissingSyncPropertyAttributeException(SyncPropertyAttribute.PropertyIndicatorEnumpropertyIndicator,Typetype):base($"Missing Property with {nameof(SyncPropertyAttribute)} ({nameof(SyncPropertyAttribute.PropertyIndicator)}: {propertyIndicator.ToString()}) defined for Type: {type.FullName}")
{
}
}
publicclassNETCoreSyncServerMismatchPropertyTypeException:Exception
{
publicNETCoreSyncServerMismatchPropertyTypeException(PropertyInfopropertyInfo,TypeexpectedType,Typetype):base($"Mismatch Property Type for Property: {propertyInfo.Name} ({propertyInfo.PropertyType.Name}) for Type: {type.FullName}. Expected Property Type: {expectedType.ToString()}")
{
}
}
}