//----------------------------------------------------------------------- // // Copyright © 2012 Nils Hammar and Future Technology Devices International Limited. All rights reserved. // //----------------------------------------------------------------------- /* * Code is based on FTDI code, rewritten by Nils Hammar. */ namespace FtdiApi.Exceptions { using System; /// /// Exceptions thrown by errors within the FTDI class. /// [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix", Justification = "Reviewed, intentional")] [global::System.Serializable] public class FT_EXCEPTION : Exception { /// /// Initializes a new instance of the class. /// public FT_EXCEPTION() { } /// /// Initializes a new instance of the class. /// /// Exception Message public FT_EXCEPTION(string message) : base(message) { } /// /// Initializes a new instance of the class. /// /// Exception Message. /// Exception leading to this exception. public FT_EXCEPTION(string message, Exception inner) : base(message, inner) { } /// /// Initializes a new instance of the class. /// /// The SerializationInfo that holds the serialized object data about the exception being thrown. /// The StreamingContext that contains contextual information about the source or destination. protected FT_EXCEPTION( System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } } }