summaryrefslogtreecommitdiff
path: root/DesignPatterns/src/app/DesignPatterns.Factory/Exceptions/NegativeMoneyException.cs
blob: d7d313d8c5b56d1053be63c753fcf68d9cd29440 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 ) {}
	}
}