Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/01/17 15:15:25 (7 years ago)
Author:
gkronber
Message:

#2520: fixed unit tests checking for exceptions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PersistenceReintegration/HeuristicLab.Persistence/4.0/Core/Mapper.cs

    r14771 r15020  
    134134
    135135    public object CreateInstance(Type type) {
    136       return StaticCache.GetTypeInfo(type).GetConstructor()();
     136      try {
     137        return StaticCache.GetTypeInfo(type).GetConstructor()();
     138      } catch (Exception e) {
     139        throw new PersistenceException("Deserialization failed.", e);
     140      }
    137141    }
    138142
Note: See TracChangeset for help on using the changeset viewer.