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; } } }