namespace Zeta.EnterpriseLibrary.Common.IO { #region Using directives. // ---------------------------------------------------------------------- using System; using System.Runtime.Serialization; // ---------------------------------------------------------------------- #endregion ///////////////////////////////////////////////////////////////////////// /// <summary> /// Exception to indicate to stop a certain (possibly asynchronous) /// processing. /// </summary> [Serializable] public class CancelOperationException : Exception { #region Public constructors. // ------------------------------------------------------------------ /// <summary> /// Initializes a new instance of the <see cref="CancelOperationException"/> class. /// </summary> public CancelOperationException() { } /// <summary> /// Initializes a new instance of the <see cref="CancelOperationException"/> class. /// </summary> /// <param name="message">The message.</param> public CancelOperationException( string message ) : base( message ) { } /// <summary> /// Initializes a new instance of the <see cref="CancelOperationException"/> class. /// </summary> /// <param name="message">The message.</param> /// <param name="inner">The inner.</param> public CancelOperationException( string message, Exception inner ) : base( message, inner ) { } /// <summary> /// Initializes a new instance of the <see cref="CancelOperationException"/> class. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"></see> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult"></see> is zero (0). </exception> /// <exception cref="T:System.ArgumentNullException">The info parameter is null. </exception> protected CancelOperationException( SerializationInfo info, StreamingContext context ) : base( info, context ) { } // ------------------------------------------------------------------ #endregion } ///////////////////////////////////////////////////////////////////////// }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)