//----------------------------------------------------------------------- // // Copyright (c) Andrew Arnott. All rights reserved. // //----------------------------------------------------------------------- namespace DotNetOAuth { using System; /// /// An exception to represent errors in the local or remote implementation of the protocol. /// [Serializable] public class ProtocolException : Exception { /// /// Initializes a new instance of the class. /// public ProtocolException() { } /// /// Initializes a new instance of the class. /// /// A message describing the specific error the occurred or was detected. public ProtocolException(string message) : base(message) { } /// /// Initializes a new instance of the class. /// /// A message describing the specific error the occurred or was detected. /// The inner exception to include. public ProtocolException(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 System.Runtime.Serialization.StreamingContext /// that contains contextual information about the source or destination. protected ProtocolException( System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } } }