Index: Riskeer/MacroStabilityInwards/src/Riskeer.MacroStabilityInwards.CalculatedInput/WaternetCalculationException.cs =================================================================== diff -u --- Riskeer/MacroStabilityInwards/src/Riskeer.MacroStabilityInwards.CalculatedInput/WaternetCalculationException.cs (revision 0) +++ Riskeer/MacroStabilityInwards/src/Riskeer.MacroStabilityInwards.CalculatedInput/WaternetCalculationException.cs (revision 7c01a77639cfd510d494ac41556a3c7a6735db8e) @@ -0,0 +1,47 @@ +using System; +using System.Runtime.Serialization; + +namespace Riskeer.MacroStabilityInwards.CalculatedInput +{ + /// + /// Exception thrown when something went wrong while performing the waternet calculation. + /// + [Serializable] + public class WaternetCalculationException : Exception + { + /// + /// Initializes a new instance of the class. + /// + public WaternetCalculationException() {} + + /// + /// Initializes a new instance of the class + /// with a specified error message. + /// + /// The message that describes the error. + public WaternetCalculationException(string message) + : base(message) {} + + /// + /// Initializes a new instance of the class with a specified error message + /// and a reference to the inner exception that is the cause of this exception. + /// + /// The error message that explains the reason for the exception. + /// The exception that is the cause of the current exception, + /// or null if no inner exception is specified. + public WaternetCalculationException(string message, Exception innerException) : base(message, innerException) {} + + /// + /// Initializes a new instance of with + /// serialized data. + /// The that holds the serialized + /// object data about the exception being thrown. + /// The that contains contextual + /// information about the source or destination. + /// The parameter is + /// null. + /// The class name is null or + /// is zero (0). + protected WaternetCalculationException(SerializationInfo info, StreamingContext context) : base(info, context) {} + } +} \ No newline at end of file Index: Riskeer/MacroStabilityInwards/test/Riskeer.MacroStabilityInwards.CalculatedInput.Test/WaternetCalculationExceptionTest.cs =================================================================== diff -u --- Riskeer/MacroStabilityInwards/test/Riskeer.MacroStabilityInwards.CalculatedInput.Test/WaternetCalculationExceptionTest.cs (revision 0) +++ Riskeer/MacroStabilityInwards/test/Riskeer.MacroStabilityInwards.CalculatedInput.Test/WaternetCalculationExceptionTest.cs (revision 7c01a77639cfd510d494ac41556a3c7a6735db8e) @@ -0,0 +1,10 @@ +using System; +using Core.Common.TestUtil; +using NUnit.Framework; + +namespace Riskeer.MacroStabilityInwards.CalculatedInput.Test +{ + [TestFixture] + public class WaternetCalculationExceptionTest : + CustomExceptionDesignGuidelinesTestFixture {} +} \ No newline at end of file