aboutsummaryrefslogtreecommitdiff
path: root/cs-dotnet/src/gatsexception.cs
diff options
context:
space:
mode:
Diffstat (limited to 'cs-dotnet/src/gatsexception.cs')
-rw-r--r--cs-dotnet/src/gatsexception.cs16
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}