From 63628550708a616c5c58bc5c707db1e7fd9cd7c2 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 14 Nov 2012 23:55:29 +0000 Subject: Strings, bools, and ints all seem fine, the more complex container types are coming next, and will implement the full range of appropriate interfaces. --- cs-dotnet/src/gatsexception.cs | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'cs-dotnet/src/gatsexception.cs') diff --git a/cs-dotnet/src/gatsexception.cs b/cs-dotnet/src/gatsexception.cs index ea665d0..c6b2690 100644 --- a/cs-dotnet/src/gatsexception.cs +++ b/cs-dotnet/src/gatsexception.cs @@ -4,9 +4,21 @@ namespace Com.Xagasoft.Gats { public class GatsException : Exception { - public GatsException( String sName ) : - base( sName ) + public enum Type { + PrematureEnd = 1, + InvalidType = 2 + }; + + private Type _Reason; + public Type Reason + { + get { return this._Reason; } + } + + public GatsException( Type reason ) + { + _Reason = reason; } } } -- cgit v1.2.3