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

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

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

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