//----------------------------------------------------------------------- // // Copyright (c) Outercurve Foundation. All rights reserved. // //----------------------------------------------------------------------- namespace DotNetOpenAuth.Messaging { using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Text; /// /// An exception to call out a configuration or runtime failure on the part of the /// (web) application that is hosting this library. /// /// /// This exception is used rather than for those errors /// that should never be caught because they indicate a major error in the app itself /// or its configuration. /// It is an internal exception to assist in making it uncatchable. /// [SuppressMessage("Microsoft.Design", "CA1064:ExceptionsShouldBePublic", Justification = "We don't want this exception to be catchable.")] [Serializable] internal class HostErrorException : Exception { /// /// Initializes a new instance of the class. /// internal HostErrorException() { } /// /// Initializes a new instance of the class. /// /// The message. internal HostErrorException(string message) : base(message) { } /// /// Initializes a new instance of the class. /// /// The message. /// The inner exception. internal HostErrorException(string message, Exception inner) : base(message, inner) { } /// /// 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. /// /// The parameter is null. /// /// /// The class name is null or is zero (0). /// protected HostErrorException( System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } } }