/// <summary> /// Creates a new instance of this exception. /// </summary> public ESmtpSenderInitializeException() : base() { this.ErrorClass = TSmtpErrorClassEnum.secUnspecified; }
/// <summary> /// Creates a new instance of this exception with the specified message and reference to the inner exception. /// </summary> /// <param name="AMessage">The message that describes the error.</param> /// <param name="AInnerException">The exception that caused this exception.</param> /// <param name="ErrorClass">Field specifying whether the exception was caused by server configuration data, or client-supplied data. Default TSmtpErrorClassEnum.secUnspecified</param> public ESmtpSenderInitializeException(string AMessage, Exception AInnerException, TSmtpErrorClassEnum ErrorClass = TSmtpErrorClassEnum.secUnspecified) : base(AMessage, AInnerException) { this.ErrorClass = ErrorClass; }
/// <summary> /// Initializes a new instance of this Exception Class with serialized data. Needed for Remoting and general serialization. /// </summary> /// <remarks> /// Only to be used by the .NET Serialization system (eg within .NET Remoting). /// </remarks> /// <param name="AInfo">The <see cref="SerializationInfo" /> that holds the serialized object data about the <see cref="Exception" /> being thrown.</param> /// <param name="AContext">The <see cref="StreamingContext" /> that contains contextual information about the source or destination.</param> public ESmtpSenderInitializeException(SerializationInfo AInfo, StreamingContext AContext) : base(AInfo, AContext) { //FErrorClass = (TSmtpErrorClassEnum)AInfo.GetValue("ErrorClass", typeof(TSmtpErrorClassEnum)); ErrorClass = (TSmtpErrorClassEnum)AInfo.GetSByte("ErrorClass"); }