diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-11-14 23:55:29 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-11-14 23:55:29 +0000 |
commit | 63628550708a616c5c58bc5c707db1e7fd9cd7c2 (patch) | |
tree | b6b7d466db687ba360cd760245d1146e973863c0 /cs-dotnet/src/gatsexception.cs | |
parent | 9d86cba840252b451c4b86d9ea16c821b6c97245 (diff) | |
download | libgats-63628550708a616c5c58bc5c707db1e7fd9cd7c2.tar.gz libgats-63628550708a616c5c58bc5c707db1e7fd9cd7c2.tar.bz2 libgats-63628550708a616c5c58bc5c707db1e7fd9cd7c2.tar.xz libgats-63628550708a616c5c58bc5c707db1e7fd9cd7c2.zip |
Strings, bools, and ints all seem fine, the more complex container types are
coming next, and will implement the full range of appropriate interfaces.
Diffstat (limited to 'cs-dotnet/src/gatsexception.cs')
-rw-r--r-- | cs-dotnet/src/gatsexception.cs | 16 |
1 files changed, 14 insertions, 2 deletions
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 | |||
4 | { | 4 | { |
5 | public class GatsException : Exception | 5 | public class GatsException : Exception |
6 | { | 6 | { |
7 | public GatsException( String sName ) : | 7 | public enum Type |
8 | base( sName ) | ||
9 | { | 8 | { |
9 | PrematureEnd = 1, | ||
10 | InvalidType = 2 | ||
11 | }; | ||
12 | |||
13 | private Type _Reason; | ||
14 | public Type Reason | ||
15 | { | ||
16 | get { return this._Reason; } | ||
17 | } | ||
18 | |||
19 | public GatsException( Type reason ) | ||
20 | { | ||
21 | _Reason = reason; | ||
10 | } | 22 | } |
11 | } | 23 | } |
12 | } | 24 | } |