From 8c137f229c36a777ead5cacb3350cb8692646292 Mon Sep 17 00:00:00 2001 From: "mo.khan" Date: Sat, 5 Jan 2008 07:16:52 +0000 Subject: git-svn-id: http://mokhan.googlecode.com/svn/trunk@9 a0a4a051-f042-0410-9e78-9fae330bdb64 --- .../Exceptions/NegativeMoneyException.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 DesignPatterns/src/app/DesignPatterns.Factory/Exceptions/NegativeMoneyException.cs (limited to 'DesignPatterns/src/app/DesignPatterns.Factory/Exceptions/NegativeMoneyException.cs') diff --git a/DesignPatterns/src/app/DesignPatterns.Factory/Exceptions/NegativeMoneyException.cs b/DesignPatterns/src/app/DesignPatterns.Factory/Exceptions/NegativeMoneyException.cs new file mode 100644 index 0000000..d7d313d --- /dev/null +++ b/DesignPatterns/src/app/DesignPatterns.Factory/Exceptions/NegativeMoneyException.cs @@ -0,0 +1,15 @@ +using System; +using System.Runtime.Serialization; + +namespace DesignPatterns.Factory { + [Serializable] + public class NegativeMoneyException : ArgumentException { + public NegativeMoneyException( ) : this( "Cannot create a negative money." ) {} + + public NegativeMoneyException( string message ) : base( message ) {} + + public NegativeMoneyException( string message, Exception innerException ) : base( message, innerException ) {} + + protected NegativeMoneyException( SerializationInfo info, StreamingContext context ) : base( info, context ) {} + } +} \ No newline at end of file -- cgit v1.2.3