-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathShapesException.cs
More file actions
30 lines (27 loc) · 1011 Bytes
/
ShapesException.cs
File metadata and controls
30 lines (27 loc) · 1011 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.Serialization;
namespace ShapesGraphics
{
[Serializable]
public class ShapesException : ApplicationException
{
// My Data Additions:
public string MyMessage { get; set; }
public DateTime MyErrorTimeStamp { get; set; }
// Given Constructors:
public ShapesException() { }
public ShapesException(string message) : base(message) { }
public ShapesException(string message, Exception inner) : base(message, inner) { }
protected ShapesException(SerializationInfo info, StreamingContext context) : base(info, context) { }
// My Constructor Addition:
public ShapesException(string message, string MyMessage, DateTime date) : base(message)
{
this.MyMessage = MyMessage;
this.MyErrorTimeStamp = date;
}
}
}