Changeset 14927 for branches/PersistenceReintegration/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/ArraySerializer.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/ArraySerializer.cs
r14185 r14927 23 23 using System.Collections.Generic; 24 24 using HeuristicLab.Persistence.Core; 25 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;25 using HeuristicLab.Persistence; 26 26 using HeuristicLab.Persistence.Interfaces; 27 27 28 28 namespace HeuristicLab.Persistence.Default.CompositeSerializers { 29 29 30 [Storable Class]30 [StorableType("17987df2-38f0-4158-b4c7-783ffa2737d1")] 31 31 internal sealed class ArraySerializer : ICompositeSerializer { 32 32 … … 99 99 } 100 100 return Array.CreateInstance(t.GetElementType(), lengths, lowerBounds); 101 } 102 catch (InvalidOperationException x) { 101 } catch (InvalidOperationException x) { 103 102 throw new PersistenceException("Insufficient meta information to construct array instance.", x); 104 } 105 catch (InvalidCastException x) { 103 } catch (InvalidCastException x) { 106 104 throw new PersistenceException("Invalid format of array metainfo.", x); 107 105 } … … 134 132 } 135 133 } 136 } 137 catch (InvalidOperationException x) { 134 } catch (InvalidOperationException x) { 138 135 throw new PersistenceException("Insufficient data to fill array instance", x); 139 } 140 catch (InvalidCastException x) { 136 } catch (InvalidCastException x) { 141 137 throw new PersistenceException("Invalid element data. Cannot fill array", x); 142 } 143 catch (IndexOutOfRangeException x) { 138 } catch (IndexOutOfRangeException x) { 144 139 throw new PersistenceException("Too many elements during array deserialization", x); 145 140 }
Note: See TracChangeset
for help on using the changeset viewer.