annotate MetroWpf/Stocks.Common/Exceptions/InvalidWebPriceData.cs @ 20:6109bc268b90

Latest
author adminsh@apollo
date Tue, 20 Mar 2012 13:37:46 +0000
parents
children a8b50a087544
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.Linq;
adminsh@apollo
parents:
diff changeset
4 using System.Text;
adminsh@apollo
parents:
diff changeset
5
adminsh@apollo
parents:
diff changeset
6 namespace Stocks.Common.Exceptions
adminsh@apollo
parents:
diff changeset
7 {
adminsh@apollo
parents:
diff changeset
8 [Serializable]
adminsh@apollo
parents:
diff changeset
9 public class InvalidWebPriceDataException : Exception
adminsh@apollo
parents:
diff changeset
10 {
adminsh@apollo
parents:
diff changeset
11 public string WebPriceData { get; set; }
adminsh@apollo
parents:
diff changeset
12 public InvalidWebPriceDataException() : base ()
adminsh@apollo
parents:
diff changeset
13 {
adminsh@apollo
parents:
diff changeset
14
adminsh@apollo
parents:
diff changeset
15 }
adminsh@apollo
parents:
diff changeset
16 public InvalidWebPriceDataException(string webPriceData) : base(webPriceData)
adminsh@apollo
parents:
diff changeset
17 {
adminsh@apollo
parents:
diff changeset
18 WebPriceData = webPriceData;
adminsh@apollo
parents:
diff changeset
19 }
adminsh@apollo
parents:
diff changeset
20
adminsh@apollo
parents:
diff changeset
21 public InvalidWebPriceDataException(string webPriceData, Exception innerException)
adminsh@apollo
parents:
diff changeset
22 : base("Unexpected web price data", innerException)
adminsh@apollo
parents:
diff changeset
23 {
adminsh@apollo
parents:
diff changeset
24 WebPriceData = webPriceData;
adminsh@apollo
parents:
diff changeset
25 }
adminsh@apollo
parents:
diff changeset
26 }
adminsh@apollo
parents:
diff changeset
27 }