/* * Copyright (C) 2007-2013 Xagasoft, All rights reserved. * * This file is part of the libgats library and is released under the * terms of the license contained in the file LICENSE. */ using System; namespace Com.Xagasoft.Gats { /// /// Exception used to report parsing or encoding errors in 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; } } }