Index: DamEngine/trunk/src/Deltares.DamEngine.Data/Standard/ConversionException.cs
===================================================================
diff -u -r4000 -r4052
--- DamEngine/trunk/src/Deltares.DamEngine.Data/Standard/ConversionException.cs (.../ConversionException.cs) (revision 4000)
+++ DamEngine/trunk/src/Deltares.DamEngine.Data/Standard/ConversionException.cs (.../ConversionException.cs) (revision 4052)
@@ -21,30 +21,29 @@
using System;
-namespace Deltares.DamEngine.Data.Standard
+namespace Deltares.DamEngine.Data.Standard;
+
+///
+/// Exception class for conversion
+///
+///
+public class ConversionException : Exception
{
+ private const string MessagePattern = "Couldn't convert '{0}' to type {1}";
+
///
- /// Exception class for conversion
+ /// Initializes a new instance of the class.
///
- ///
- public class ConversionException : Exception
- {
- private const string MessagePattern = "Couldn't convert '{0}' to type {1}";
+ /// The error message that explains the reason for the exception.
+ /// The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.
+ public ConversionException(string message, Exception innerException) : base(message, innerException) {}
- ///
- /// Initializes a new instance of the class.
- ///
- /// The error message that explains the reason for the exception.
- /// The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.
- public ConversionException(string message, Exception innerException) : base(message, innerException) {}
-
- ///
- /// Initializes a new instance of the class.
- ///
- /// The type.
- /// The value.
- /// The inner.
- public ConversionException(Type type, object value, Exception inner)
- : base(string.Format(MessagePattern, value, type.Name), inner) {}
- }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The type.
+ /// The value.
+ /// The inner.
+ public ConversionException(Type type, object value, Exception inner)
+ : base(string.Format(MessagePattern, value, type.Name), inner) {}
}
\ No newline at end of file