annotate MetroWpf/Stocks.Common/Exceptions/InvalidWebPriceData.cs @ 63:536498832a79

Latest version before changing bindings to Listbox
author Steven Hollidge <stevenhollidge@hotmail.com>
date Sun, 22 Apr 2012 13:33:42 +0100
parents a8b50a087544
children
rev   line source
20
adminsh@apollo
parents:
diff changeset
1 using System;
adminsh@apollo
parents:
diff changeset
2 using System.Collections.Generic;
adminsh@apollo
parents:
diff changeset
3 using System.Text;
adminsh@apollo
parents:
diff changeset
4
adminsh@apollo
parents:
diff changeset
5 namespace Stocks.Common.Exceptions
adminsh@apollo
parents:
diff changeset
6 {
adminsh@apollo
parents:
diff changeset
7 [Serializable]
adminsh@apollo
parents:
diff changeset
8 public class InvalidWebPriceDataException : Exception
adminsh@apollo
parents:
diff changeset
9 {
adminsh@apollo
parents:
diff changeset
10 public string WebPriceData { get; set; }
adminsh@apollo
parents:
diff changeset
11 public InvalidWebPriceDataException() : base ()
adminsh@apollo
parents:
diff changeset
12 {
adminsh@apollo
parents:
diff changeset
13
adminsh@apollo
parents:
diff changeset
14 }
adminsh@apollo
parents:
diff changeset
15 public InvalidWebPriceDataException(string webPriceData) : base(webPriceData)
adminsh@apollo
parents:
diff changeset
16 {
adminsh@apollo
parents:
diff changeset
17 WebPriceData = webPriceData;
adminsh@apollo
parents:
diff changeset
18 }
adminsh@apollo
parents:
diff changeset
19
adminsh@apollo
parents:
diff changeset
20 public InvalidWebPriceDataException(string webPriceData, Exception innerException)
adminsh@apollo
parents:
diff changeset
21 : base("Unexpected web price data", innerException)
adminsh@apollo
parents:
diff changeset
22 {
adminsh@apollo
parents:
diff changeset
23 WebPriceData = webPriceData;
adminsh@apollo
parents:
diff changeset
24 }
adminsh@apollo
parents:
diff changeset
25 }
adminsh@apollo
parents:
diff changeset
26 }