Changeset 1652 for trunk/sources/HeuristicLab.Persistence/3.3/Core
- Timestamp:
- 04/24/09 13:51:57 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence/3.3/Core/Serializer.cs
r1625 r1652 2 2 using System.Collections; 3 3 using System; 4 using System.Linq; 4 5 using HeuristicLab.Persistence.Interfaces; 5 6 using HeuristicLab.Persistence.Core.Tokens; 6 7 using HeuristicLab.Persistence.Default.Decomposers.Storable; 8 using System.Text; 7 9 8 10 namespace HeuristicLab.Persistence.Core { … … 76 78 throw new PersistenceException( 77 79 String.Format( 78 "No suitable method for serializing values of type \"{0}\" found.", 79 value.GetType().VersionInvariantName())); 80 "No suitable method for serializing values of type \"{0}\" found\r\n" + 81 "Formatters:\r\n{1}\r\n" + 82 "Decomposers:\r\n{2}", 83 value.GetType().VersionInvariantName(), 84 string.Join("\r\n", configuration.Formatters.Select(f => f.GetType().VersionInvariantName()).ToArray()), 85 string.Join("\r\n", configuration.Decomposers.Select(d => d.GetType().VersionInvariantName()).ToArray()) 86 )); 87 80 88 } 81 89
Note: See TracChangeset
for help on using the changeset viewer.