//============================================================================ //ZException Class //Copyright ?2004 Jerry Vos // //This library is free software; you can redistribute it and/or //modify it under the terms of the GNU Lesser General Public //License as published by the Free Software Foundation; either //version 2.1 of the License, or (at your option) any later version. // //This library is distributed in the hope that it will be useful, //but WITHOUT ANY WARRANTY; without even the implied warranty of //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU //Lesser General Public License for more details. // //You should have received a copy of the GNU Lesser General Public //License along with this library; if not, write to the Free Software //Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //============================================================================= using System; namespace DrawGraph { /// /// An exception thrown by ZedGraph. A child class of . /// /// /// Jerry Vos modified by John Champion /// $Revision: 3.2 $ $Date: 2006/06/24 20:26:44 $ public class ZException : System.ApplicationException { /// /// Initializes a new instance of the /// class with serialized data. /// /// The /// instance that holds the serialized object data about the exception being thrown. /// The /// instance that contains contextual information about the source or destination. protected ZException( System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context ) : base ( info, context ) { } /// /// Initializes a new instance of the class with a specified /// error message and a reference to the inner exception that is the cause of this exception. /// /// The error message that explains the reason for the exception. /// The exception that is the cause of the current exception. /// If the innerException parameter is not a null reference, the current exception is raised /// in a catch block that handles the inner exception. public ZException( System.String message, System.Exception innerException ) : base ( message, innerException ) { } /// /// Initializes a new instance of the class with a specified error message. /// /// The error message that explains the reason for the exception. public ZException ( System.String message ) : base( message ) { } /// /// Initializes a new instance of the class. /// public ZException() : base() { } } }