using System; using System.Runtime.Serialization; /* * NOTE TO CONTRIBUTORS: * * Never use this exception directly. * Use the methods in the SelfCheck class instead. */ namespace Swan { #pragma warning disable CA1032 // Add standard exception constructors. /// /// The exception that is thrown by methods of the class /// to signal a condition most probably caused by an internal error in a library /// or application. /// Do not use this class directly; use the methods of the class instead. /// [Serializable] public sealed class InternalErrorException : Exception { #pragma warning disable SA1642 // Constructor summary documentation should begin with standard text - the tag confuses the analyzer. /// /// Initializes a new instance of the class. /// Do not call this constrcutor directly; use the methods of the class instead. /// /// The message that describes the error. #pragma warning disable SA1642 internal InternalErrorException(string message) : base(message) { } /// /// Initializes a new instance of the class. /// /// The that holds the serialized object data about the exception being thrown. /// The that contains contextual information about the source or destination. private InternalErrorException(SerializationInfo info, StreamingContext context) : base(info, context) { } } #pragma warning restore CA1032 }