- Timestamp:
- 07/07/14 16:22:49 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.PluginInfrastructure/3.3/AssemblyHelpers.cs
r11113 r11117 34 34 object[] attributes = assembly.GetCustomAttributes(typeof(T), false); 35 35 if (attributes.Length == 0) { 36 throw new Exception(string.Format("No attributes of type {0} found in assembly {1}", typeof(T).Name,36 throw new InvalidOperationException(string.Format("No attributes of type {0} found in assembly {1}", typeof(T).Name, 37 37 assembly.FullName)); 38 38 } … … 41 41 var propertyInfo = attribute.GetType().GetProperty(propertyName); 42 42 if (propertyInfo == null) { 43 throw new Exception(string.Format("No property {0} found in attribute {1}, assembly: {2}",43 throw new InvalidOperationException(string.Format("No property {0} found in attribute {1}, assembly: {2}", 44 44 propertyName, typeof(T).Name, assembly.FullName)); 45 45 }
Note: See TracChangeset
for help on using the changeset viewer.