- Timestamp:
- 03/10/10 13:39:32 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/Storable/StorableSerializer.cs
r2983 r2990 40 40 41 41 public object CreateInstance(Type type, IEnumerable<Tag> metaInfo) { 42 object instance = StorableConstructorAttribute.CallStorableConstructor(type); 43 if (instance == null) 44 instance = Activator.CreateInstance(type, true); 45 return instance; 42 try { 43 object instance = StorableConstructorAttribute.CallStorableConstructor(type); 44 if (instance == null) 45 instance = Activator.CreateInstance(type, true); 46 return instance; 47 } catch (TargetInvocationException x) { 48 throw new PersistenceException( 49 "Could not instantiate storable object: Encountered exception during constructor call", 50 x.InnerException); 51 } 46 52 } 47 53
Note: See TracChangeset
for help on using the changeset viewer.