Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators/PlLinesCreator/SensorPlLineCreatorException.cs
===================================================================
diff -u -r1965 -r2118
--- DamEngine/trunk/src/Deltares.DamEngine.Calculators/PlLinesCreator/SensorPlLineCreatorException.cs (.../SensorPlLineCreatorException.cs) (revision 1965)
+++ DamEngine/trunk/src/Deltares.DamEngine.Calculators/PlLinesCreator/SensorPlLineCreatorException.cs (.../SensorPlLineCreatorException.cs) (revision 2118)
@@ -20,29 +20,21 @@
// All rights reserved.
using System;
-using System.Runtime.Serialization;
namespace Deltares.DamEngine.Calculators.PlLinesCreator
{
+ ///
+ /// Exception class for the sensor pl line creator
+ ///
+ ///
[Serializable]
public class SensorPlLineCreatorException : Exception
{
- public SensorPlLineCreatorException()
- {
- }
-
- public SensorPlLineCreatorException(string message) : base(message)
- {
- }
-
- public SensorPlLineCreatorException(string message, Exception inner) : base(message, inner)
- {
- }
-
- protected SensorPlLineCreatorException(
- SerializationInfo info,
- StreamingContext context) : base(info, context)
- {
- }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The message.
+ /// The inner.
+ public SensorPlLineCreatorException(string message, Exception inner) : base(message, inner) { }
}
}
\ No newline at end of file
Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators/Uplift/SoilVolumicMassCalculator.cs
===================================================================
diff -u -r1965 -r2118
--- DamEngine/trunk/src/Deltares.DamEngine.Calculators/Uplift/SoilVolumicMassCalculator.cs (.../SoilVolumicMassCalculator.cs) (revision 1965)
+++ DamEngine/trunk/src/Deltares.DamEngine.Calculators/Uplift/SoilVolumicMassCalculator.cs (.../SoilVolumicMassCalculator.cs) (revision 2118)
@@ -32,7 +32,11 @@
///
public class SoilVolumicMassCalculatorException : Exception
{
- public SoilVolumicMassCalculatorException(string message) : base(message) {}
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The message that describes the error.
+ public SoilVolumicMassCalculatorException(string message) : base(message) { }
}
///
Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/DamMacroStabilityCommon/MStabXmlDoc.cs
===================================================================
diff -u -r2111 -r2118
--- DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/DamMacroStabilityCommon/MStabXmlDoc.cs (.../MStabXmlDoc.cs) (revision 2111)
+++ DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/DamMacroStabilityCommon/MStabXmlDoc.cs (.../MStabXmlDoc.cs) (revision 2118)
@@ -43,10 +43,7 @@
/// Initializes a new instance of the class.
///
/// The message that describes the error.
- public MStabXmlDocException(string message)
- : base(message)
- {
- }
+ public MStabXmlDocException(string message) : base(message) { }
}
///
Index: DamEngine/trunk/src/Deltares.DamEngine.Data/General/Dike.cs
===================================================================
diff -u -r1974 -r2118
--- DamEngine/trunk/src/Deltares.DamEngine.Data/General/Dike.cs (.../Dike.cs) (revision 1974)
+++ DamEngine/trunk/src/Deltares.DamEngine.Data/General/Dike.cs (.../Dike.cs) (revision 2118)
@@ -44,10 +44,7 @@
/// Initializes a new instance of the class.
///
/// The message that describes the error.
- public DikeException(string message)
- : base(message)
- {
- }
+ public DikeException(string message) : base(message) { }
}
///
Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/DamMacroStabilityCommon/Assemblers/DtoAssemblerConversionException.cs
===================================================================
diff -u -r1965 -r2118
--- DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/DamMacroStabilityCommon/Assemblers/DtoAssemblerConversionException.cs (.../DtoAssemblerConversionException.cs) (revision 1965)
+++ DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/DamMacroStabilityCommon/Assemblers/DtoAssemblerConversionException.cs (.../DtoAssemblerConversionException.cs) (revision 2118)
@@ -20,37 +20,20 @@
// All rights reserved.
using System;
-using System.Runtime.Serialization;
namespace Deltares.DamEngine.Calculators.KernelWrappers.DamMacroStabilityCommon.Assemblers
{
+ ///
+ /// Exception class for Dto assembler conversion
+ ///
+ ///
[Serializable]
public class DtoAssemblerConversionException : Exception
{
- //
- // For guidelines regarding the creation of new exception types, see
- // http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconerrorraisinghandlingguidelines.asp
- // and
- // http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp07192001.asp
- //
-
- public DtoAssemblerConversionException()
- {
- }
-
- public DtoAssemblerConversionException(string message) : base(message)
- {
- }
-
- public DtoAssemblerConversionException(string message, Exception inner) : base(message, inner)
- {
- }
-
- protected DtoAssemblerConversionException(
- SerializationInfo info,
- StreamingContext context)
- : base(info, context)
- {
- }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The message that describes the error.
+ public DtoAssemblerConversionException(string message) : base(message) { }
}
}
\ No newline at end of file
Index: DamEngine/trunk/src/Deltares.DamEngine.Data/General/PlLines/Pl1Line.cs
===================================================================
diff -u -r1974 -r2118
--- DamEngine/trunk/src/Deltares.DamEngine.Data/General/PlLines/Pl1Line.cs (.../Pl1Line.cs) (revision 1974)
+++ DamEngine/trunk/src/Deltares.DamEngine.Data/General/PlLines/Pl1Line.cs (.../Pl1Line.cs) (revision 2118)
@@ -24,13 +24,6 @@
namespace Deltares.DamEngine.Data.General.PlLines
{
- public class PL1LineException : Exception
- {
- public PL1LineException(string message) : base(message)
- {
- }
- }
-
public class Pl1Line : GeometryPointString
{
public void Assign(Pl1Line pl1Line)
Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators/DikesOperational/OperationalCalculatorException.cs
===================================================================
diff -u -r1965 -r2118
--- DamEngine/trunk/src/Deltares.DamEngine.Calculators/DikesOperational/OperationalCalculatorException.cs (.../OperationalCalculatorException.cs) (revision 1965)
+++ DamEngine/trunk/src/Deltares.DamEngine.Calculators/DikesOperational/OperationalCalculatorException.cs (.../OperationalCalculatorException.cs) (revision 2118)
@@ -33,8 +33,6 @@
/// Initializes a new instance of the class.
///
/// The message that describes the error.
- public OperationalCalculatorException(string message) : base(message)
- {
- }
+ public OperationalCalculatorException(string message) : base(message) { }
}
}
Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/DamMacroStabilityCommon/Assemblers/DtoAssemblerException.cs
===================================================================
diff -u -r1965 -r2118
--- DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/DamMacroStabilityCommon/Assemblers/DtoAssemblerException.cs (.../DtoAssemblerException.cs) (revision 1965)
+++ DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/DamMacroStabilityCommon/Assemblers/DtoAssemblerException.cs (.../DtoAssemblerException.cs) (revision 2118)
@@ -20,37 +20,20 @@
// All rights reserved.
using System;
-using System.Runtime.Serialization;
namespace Deltares.DamEngine.Calculators.KernelWrappers.DamMacroStabilityCommon.Assemblers
{
+ ///
+ /// Exception class for Dto assembler
+ ///
+ ///
[Serializable]
public class DtoAssemblerException : Exception
{
- //
- // For guidelines regarding the creation of new exception types, see
- // http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconerrorraisinghandlingguidelines.asp
- // and
- // http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp07192001.asp
- //
-
- public DtoAssemblerException()
- {
- }
-
- public DtoAssemblerException(string message) : base(message)
- {
- }
-
- public DtoAssemblerException(string message, Exception inner) : base(message, inner)
- {
- }
-
- protected DtoAssemblerException(
- SerializationInfo info,
- StreamingContext context)
- : base(info, context)
- {
- }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The message that describes the error.
+ public DtoAssemblerException(string message) : base(message) { }
}
}
\ No newline at end of file
Index: DamEngine/trunk/src/Deltares.DamEngine.Data/Standard/ThrowHelper.cs
===================================================================
diff -u -r1974 -r2118
--- DamEngine/trunk/src/Deltares.DamEngine.Data/Standard/ThrowHelper.cs (.../ThrowHelper.cs) (revision 1974)
+++ DamEngine/trunk/src/Deltares.DamEngine.Data/Standard/ThrowHelper.cs (.../ThrowHelper.cs) (revision 2118)
@@ -57,35 +57,5 @@
if (value == null)
throw new ArgumentNullException(message);
}
-
- ///
- /// Throws if file name null or empty.
- ///
- /// Name of the file.
- internal static void ThrowIfFileNameNullOrEmpty(string fileName)
- {
- ThrowIfFileNameNullOrEmpty(fileName, Resources.FileNameNotValid);
- }
- ///
- /// Throws if file name null or empty.
- ///
- /// Name of the file.
- /// The message.
- internal static void ThrowIfFileNameNullOrEmpty(string fileName, string message)
- {
- ThrowIfFileNameNullOrEmpty(fileName, message);
- }
- ///
- /// Throws if file name null or empty.
- ///
- /// The type of the exception.
- /// Name of the file.
- /// The message.
- internal static void ThrowIfFileNameNullOrEmpty(string fileName, string message)
- where TException : Exception
- {
- ThrowWhenConditionIsTrue(message,
- () => string.IsNullOrEmpty(fileName) || fileName.Trim() == "");
- }
}
}
Index: DamEngine/trunk/src/Deltares.DamEngine.Interface/EngineInterfaceException.cs
===================================================================
diff -u -r1974 -r2118
--- DamEngine/trunk/src/Deltares.DamEngine.Interface/EngineInterfaceException.cs (.../EngineInterfaceException.cs) (revision 1974)
+++ DamEngine/trunk/src/Deltares.DamEngine.Interface/EngineInterfaceException.cs (.../EngineInterfaceException.cs) (revision 2118)
@@ -27,7 +27,7 @@
/// Excpetion class for the Interface
///
///
- public class EngineInterfaceException: Exception
+ public class EngineInterfaceException : Exception
{
///
/// Initializes a new instance of the class.
Index: DamEngine/trunk/src/Deltares.DamEngine.Data/Standard/ConversionException.cs
===================================================================
diff -u -r1974 -r2118
--- DamEngine/trunk/src/Deltares.DamEngine.Data/Standard/ConversionException.cs (.../ConversionException.cs) (revision 1974)
+++ DamEngine/trunk/src/Deltares.DamEngine.Data/Standard/ConversionException.cs (.../ConversionException.cs) (revision 2118)
@@ -20,26 +20,24 @@
// All rights reserved.
using System;
-using System.Runtime.Serialization;
namespace Deltares.DamEngine.Data.Standard
{
+ ///
+ /// Exception class for conversion
+ ///
+ ///
public class ConversionException: Exception
{
private const string MessagePattern = "Couldn't convert '{0}' to type {1}";
- public ConversionException() { }
-
- public ConversionException(Type type, object value)
- : base(string.Format(MessagePattern, value, type.Name)) { }
-
+ ///
+ /// 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) { }
-
- public ConversionException(string message, Exception inner)
- : base(message, inner) { }
-
- protected ConversionException(SerializationInfo info, StreamingContext context)
- : base(info, context) { }
}
}
Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators/DikesDesign/SurfaceLineAdapterException.cs
===================================================================
diff -u -r1965 -r2118
--- DamEngine/trunk/src/Deltares.DamEngine.Calculators/DikesDesign/SurfaceLineAdapterException.cs (.../SurfaceLineAdapterException.cs) (revision 1965)
+++ DamEngine/trunk/src/Deltares.DamEngine.Calculators/DikesDesign/SurfaceLineAdapterException.cs (.../SurfaceLineAdapterException.cs) (revision 2118)
@@ -20,7 +20,6 @@
// All rights reserved.
using System;
-using System.Runtime.Serialization;
namespace Deltares.DamEngine.Calculators.DikesDesign
{
@@ -34,39 +33,12 @@
///
/// Initializes a new instance of the class.
///
- public SurfaceLineAdapterException()
- {
- }
+ public SurfaceLineAdapterException() { }
///
/// Initializes a new instance of the class.
///
/// The message that describes the error.
- public SurfaceLineAdapterException(string message)
- : base(message)
- {
- }
-
- ///
- /// Initializes a new instance of the class.
- ///
- /// The message.
- /// The inner.
- public SurfaceLineAdapterException(string message, Exception inner)
- : base(message, inner)
- {
- }
-
- ///
- /// Initializes a new instance of the class.
- ///
- /// The that holds the serialized object data about the exception being thrown.
- /// The that contains contextual information about the source or destination.
- protected SurfaceLineAdapterException(
- SerializationInfo info,
- StreamingContext context)
- : base(info, context)
- {
- }
+ public SurfaceLineAdapterException(string message) : base(message) { }
}
}
\ No newline at end of file
Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators/Stability/StabilityServiceAgentException.cs
===================================================================
diff -u -r1965 -r2118
--- DamEngine/trunk/src/Deltares.DamEngine.Calculators/Stability/StabilityServiceAgentException.cs (.../StabilityServiceAgentException.cs) (revision 1965)
+++ DamEngine/trunk/src/Deltares.DamEngine.Calculators/Stability/StabilityServiceAgentException.cs (.../StabilityServiceAgentException.cs) (revision 2118)
@@ -23,14 +23,12 @@
namespace Deltares.DamEngine.Calculators.Stability
{
+ ///
+ /// Exception class for the stability service agent
+ ///
+ ///
public class StabilityServiceAgentException : Exception
{
- public StabilityServiceAgentException() : this("There was an error") { }
public StabilityServiceAgentException(string message) : base(message) { }
- public StabilityServiceAgentException(string message, Exception inner) : base(message, inner) { }
- protected StabilityServiceAgentException(
- System.Runtime.Serialization.SerializationInfo info,
- System.Runtime.Serialization.StreamingContext context)
- : base(info, context) { }
}
}
Index: DamEngine/trunk/src/Deltares.DamEngine.Data/General/PolyLine.cs
===================================================================
diff -u -r1974 -r2118
--- DamEngine/trunk/src/Deltares.DamEngine.Data/General/PolyLine.cs (.../PolyLine.cs) (revision 1974)
+++ DamEngine/trunk/src/Deltares.DamEngine.Data/General/PolyLine.cs (.../PolyLine.cs) (revision 2118)
@@ -27,12 +27,17 @@
namespace Deltares.DamEngine.Data.General
{
+ ///
+ /// Exception class for poly line
+ ///
+ ///
public class PolyLineException : Exception
{
- public PolyLineException(string message)
- : base(message)
- {
- }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The message that describes the error.
+ public PolyLineException(string message) : base(message) { }
}
public class PolyLine where T : GeometryPoint, new()
Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/DamMacroStabilityCommon/Assemblers/ObjectExtensions.cs
===================================================================
diff -u -r1965 -r2118
--- DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/DamMacroStabilityCommon/Assemblers/ObjectExtensions.cs (.../ObjectExtensions.cs) (revision 1965)
+++ DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/DamMacroStabilityCommon/Assemblers/ObjectExtensions.cs (.../ObjectExtensions.cs) (revision 2118)
@@ -591,25 +591,28 @@
}
///
- ///
+ /// Exception class for conversion
///
+ ///
[Serializable]
public class ConversionException : Exception
{
private const string MessagePattern = "Couldn't convert '{0}' to type {1}";
- public ConversionException() {}
-
- public ConversionException(Type type, object value)
- : base(string.Format(MessagePattern, value, type.Name)) {}
-
+ ///
+ /// 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) {}
+ : base(string.Format(MessagePattern, value, type.Name), inner) { }
- public ConversionException(string message, Exception inner)
- : base(message, inner) {}
-
- protected ConversionException(SerializationInfo info, StreamingContext context)
- : base(info, context) {}
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The message.
+ /// The inner.
+ public ConversionException(string message, Exception inner) : base(message, inner) { }
}
}
\ No newline at end of file
Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/DamMacroStabilityCommon/Assemblers/DtoPropertyMapException.cs
===================================================================
diff -u -r1965 -r2118
--- DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/DamMacroStabilityCommon/Assemblers/DtoPropertyMapException.cs (.../DtoPropertyMapException.cs) (revision 1965)
+++ DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/DamMacroStabilityCommon/Assemblers/DtoPropertyMapException.cs (.../DtoPropertyMapException.cs) (revision 2118)
@@ -20,30 +20,20 @@
// All rights reserved.
using System;
-using System.Runtime.Serialization;
namespace Deltares.DamEngine.Calculators.KernelWrappers.DamMacroStabilityCommon.Assemblers
{
+ ///
+ /// Exception class for Dto property map
+ ///
+ ///
[Serializable]
public class DtoPropertyMapException : Exception
{
- public DtoPropertyMapException()
- {
- }
-
- public DtoPropertyMapException(string message) : base(message)
- {
- }
-
- public DtoPropertyMapException(string message, Exception inner) : base(message, inner)
- {
- }
-
- protected DtoPropertyMapException(
- SerializationInfo info,
- StreamingContext context)
- : base(info, context)
- {
- }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The message that describes the error.
+ public DtoPropertyMapException(string message) : base(message) { }
}
}
\ No newline at end of file
Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/DamMacroStabilityCommon/Assemblers/MissingRequiredFieldValueException.cs
===================================================================
diff -u -r1965 -r2118
--- DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/DamMacroStabilityCommon/Assemblers/MissingRequiredFieldValueException.cs (.../MissingRequiredFieldValueException.cs) (revision 1965)
+++ DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/DamMacroStabilityCommon/Assemblers/MissingRequiredFieldValueException.cs (.../MissingRequiredFieldValueException.cs) (revision 2118)
@@ -20,30 +20,20 @@
// All rights reserved.
using System;
-using System.Runtime.Serialization;
namespace Deltares.DamEngine.Calculators.KernelWrappers.DamMacroStabilityCommon.Assemblers
-{
+{
+ ///
+ /// Exception class for missing required value
+ ///
+ ///
[Serializable]
public class MissingRequiredValueException : Exception
{
- public MissingRequiredValueException()
- {
- }
-
- public MissingRequiredValueException(string message) : base(message)
- {
- }
-
- public MissingRequiredValueException(string message, Exception inner) : base(message, inner)
- {
- }
-
- protected MissingRequiredValueException(
- SerializationInfo info,
- StreamingContext context)
- : base(info, context)
- {
- }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The message that describes the error.
+ public MissingRequiredValueException(string message) : base(message) { }
}
}
\ No newline at end of file
Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators/PlLinesCreator/PlLinesCreatorException.cs
===================================================================
diff -u -r1965 -r2118
--- DamEngine/trunk/src/Deltares.DamEngine.Calculators/PlLinesCreator/PlLinesCreatorException.cs (.../PlLinesCreatorException.cs) (revision 1965)
+++ DamEngine/trunk/src/Deltares.DamEngine.Calculators/PlLinesCreator/PlLinesCreatorException.cs (.../PlLinesCreatorException.cs) (revision 2118)
@@ -20,7 +20,6 @@
// All rights reserved.
using System;
-using System.Runtime.Serialization;
namespace Deltares.DamEngine.Calculators.PlLinesCreator
{
@@ -31,25 +30,18 @@
[Serializable]
public class PlLinesCreatorException : Exception
{
- public PlLinesCreatorException()
- {
- }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The message that describes the error.
+ public PlLinesCreatorException(string message) : base(message) { }
- public PlLinesCreatorException(string message)
- : base(message)
- {
- }
-
- public PlLinesCreatorException(string message, Exception inner)
- : base(message, inner)
- {
- }
-
- protected PlLinesCreatorException(SerializationInfo info, StreamingContext context)
- : base(info, context)
- {
- }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The message.
+ /// The inner.
+ public PlLinesCreatorException(string message, Exception inner) : base(message, inner) { }
}
-
}
Index: DamEngine/trunk/src/Deltares.DamEngine.Data/Geometry/CoordinateSystemConverter.cs
===================================================================
diff -u -r1974 -r2118
--- DamEngine/trunk/src/Deltares.DamEngine.Data/Geometry/CoordinateSystemConverter.cs (.../CoordinateSystemConverter.cs) (revision 1974)
+++ DamEngine/trunk/src/Deltares.DamEngine.Data/Geometry/CoordinateSystemConverter.cs (.../CoordinateSystemConverter.cs) (revision 2118)
@@ -32,8 +32,7 @@
/// Initializes a new instance of the class.
///
/// The message that describes the error.
- public CoordinateSystemConverterException(string message)
- : base(message) {}
+ public CoordinateSystemConverterException(string message) : base(message) { }
}
///
Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/DamMacroStabilityCommon/MacroStabilityException.cs
===================================================================
diff -u -r1965 -r2118
--- DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/DamMacroStabilityCommon/MacroStabilityException.cs (.../MacroStabilityException.cs) (revision 1965)
+++ DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/DamMacroStabilityCommon/MacroStabilityException.cs (.../MacroStabilityException.cs) (revision 2118)
@@ -20,7 +20,6 @@
// All rights reserved.
using System;
-using System.Runtime.Serialization;
namespace Deltares.DamEngine.Calculators.KernelWrappers.DamMacroStabilityCommon
{
@@ -30,17 +29,10 @@
///
public class MacroStabilityException : Exception
{
- public MacroStabilityException() { }
-
- public MacroStabilityException(string message)
- : base(message) { }
-
- public MacroStabilityException(string message, Exception inner)
- : base(message, inner) { }
-
- protected MacroStabilityException(
- SerializationInfo info,
- StreamingContext context)
- : base(info, context) { }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The message that describes the error.
+ public MacroStabilityException(string message): base(message) { }
}
}
\ No newline at end of file
Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/DamMacroStabilityCommon/Assemblers/EmbeddedResourceNotFoundException.cs
===================================================================
diff -u -r1965 -r2118
--- DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/DamMacroStabilityCommon/Assemblers/EmbeddedResourceNotFoundException.cs (.../EmbeddedResourceNotFoundException.cs) (revision 1965)
+++ DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/DamMacroStabilityCommon/Assemblers/EmbeddedResourceNotFoundException.cs (.../EmbeddedResourceNotFoundException.cs) (revision 2118)
@@ -21,24 +21,28 @@
using System;
using System.Reflection;
-using System.Runtime.Serialization;
namespace Deltares.DamEngine.Calculators.KernelWrappers.DamMacroStabilityCommon.Assemblers
{
+ ///
+ /// Exception class for missing embedded resource
+ ///
+ ///
[Serializable]
public class EmbeddedResourceNotFoundException : Exception
{
- public EmbeddedResourceNotFoundException() {}
-
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The assembly.
+ /// Name of the resource.
public EmbeddedResourceNotFoundException(Assembly assembly, string resourceName)
: this(string.Format("Could not locate embedded resource '{0}' in assembly '{1}'", resourceName, assembly.GetName())) {}
- public EmbeddedResourceNotFoundException(string message) : base(message) {}
-
- public EmbeddedResourceNotFoundException(string message, System.Exception inner) : base(message, inner) {}
-
- protected EmbeddedResourceNotFoundException(
- SerializationInfo info,
- StreamingContext context) : base(info, context) {}
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The message that describes the error.
+ public EmbeddedResourceNotFoundException(string message) : base(message) { }
}
}
\ No newline at end of file
Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators/DikesDesign/DesignCalculatorException.cs
===================================================================
diff -u -r1965 -r2118
--- DamEngine/trunk/src/Deltares.DamEngine.Calculators/DikesDesign/DesignCalculatorException.cs (.../DesignCalculatorException.cs) (revision 1965)
+++ DamEngine/trunk/src/Deltares.DamEngine.Calculators/DikesDesign/DesignCalculatorException.cs (.../DesignCalculatorException.cs) (revision 2118)
@@ -29,8 +29,10 @@
///
public class DesignCalculatorException : Exception
{
- public DesignCalculatorException(string message): base(message)
- {
- }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The message that describes the error.
+ public DesignCalculatorException(string message) : base(message) { }
}
}