Changeset 4068 for trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/ArraySerializer.cs
- Timestamp:
- 07/22/10 00:44:01 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/ArraySerializer.cs
r3742 r4068 21 21 22 22 using System; 23 using System.Collections.Generic; 23 24 using HeuristicLab.Persistence.Core; 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 24 26 using HeuristicLab.Persistence.Interfaces; 25 using System.Collections.Generic;26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;27 using System.Text;28 27 29 28 namespace HeuristicLab.Persistence.Default.CompositeSerializers { … … 96 95 } 97 96 return Array.CreateInstance(t.GetElementType(), lengths, lowerBounds); 98 } catch (InvalidOperationException x) { 97 } 98 catch (InvalidOperationException x) { 99 99 throw new PersistenceException("Insufficient meta information to construct array instance.", x); 100 } catch (InvalidCastException x) { 100 } 101 catch (InvalidCastException x) { 101 102 throw new PersistenceException("Invalid format of array metainfo.", x); 102 103 } … … 129 130 } 130 131 } 131 } catch (InvalidOperationException x) { 132 } 133 catch (InvalidOperationException x) { 132 134 throw new PersistenceException("Insufficient data to fill array instance", x); 133 } catch (InvalidCastException x) { 135 } 136 catch (InvalidCastException x) { 134 137 throw new PersistenceException("Invalid element data. Cannot fill array", x); 135 } catch (IndexOutOfRangeException x) { 138 } 139 catch (IndexOutOfRangeException x) { 136 140 throw new PersistenceException("Too many elements during array deserialization", x); 137 141 }
Note: See TracChangeset
for help on using the changeset viewer.