Added a C# exception class