Changeset 14927 for branches/PersistenceReintegration/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/TypeSerializer.cs
- Timestamp:
- 05/04/17 17:19:35 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceReintegration/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/TypeSerializer.cs
r14185 r14927 24 24 using HeuristicLab.Persistence.Auxiliary; 25 25 using HeuristicLab.Persistence.Core; 26 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;26 using HeuristicLab.Persistence; 27 27 using HeuristicLab.Persistence.Interfaces; 28 28 29 29 namespace HeuristicLab.Persistence.Default.CompositeSerializers { 30 30 31 [Storable Class]31 [StorableType("dd23170e-0998-438a-b935-2061a7a4762e")] 32 32 internal sealed class TypeSerializer : ICompositeSerializer { 33 33 … … 66 66 try { 67 67 it.MoveNext(); 68 } 69 catch (InvalidOperationException e) { 68 } catch (InvalidOperationException e) { 70 69 throw new PersistenceException("Insufficient meta information to instantiate Type object", e); 71 70 } 72 71 try { 73 72 return TypeLoader.Load((string)it.Current.Value); 74 } 75 catch (InvalidCastException e) { 73 } catch (InvalidCastException e) { 76 74 throw new PersistenceException("Invalid meta information during reconstruction of Type object", e); 77 } 78 catch (TypeLoadException e) { 75 } catch (TypeLoadException e) { 79 76 throw new PersistenceException(String.Format( 80 77 "Cannot load Type {0}, make sure all required assemblies are available.",
Note: See TracChangeset
for help on using the changeset viewer.