aboutsummaryrefslogtreecommitdiff
path: root/cs-dotnet/src/gatsexception.cs
blob: 2dc49eb43662b8cffb3337c13ccae7154bce5149 (plain)
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
using System;

namespace Com.Xagasoft.Gats
{
    public class GatsException : Exception
    {
        public enum Type
        {
            PrematureEnd        = 1,
            InvalidType         = 2,
            InvalidFormat       = 3,
        };

        private Type _Reason;
        public Type Reason
        {
            get { return this._Reason; }
        }

        public GatsException( Type reason )
        {
            _Reason = reason;
        }
    }
}