/// <summary> /// Initializes a new instance of the <see cref="FlacException" /> class from serialization data. /// </summary> /// <param name="info">The <see cref="SerializationInfo" /> object that holds the serialized object data.</param> /// <param name="context"> /// The StreamingContext object that supplies the contextual information about the source or /// destination. /// </param> protected FlacException(SerializationInfo info, StreamingContext context) { if (info == null) { throw new ArgumentNullException("info"); } Layer = (FlacLayer)info.GetValue("Layer", typeof(FlacLayer)); }
public FlacException(string message, FlacLayer layer) : base(message) { Layer = layer; }
public FlacException(Exception innerexception, FlacLayer layer) : base("See innerexception", innerexception) { Layer = layer; }
/// <summary> /// Initializes a new instance of the <see cref="FlacException"/> class. /// </summary> /// <param name="innerException">The InnerException which caused the error.</param> /// <param name="layer">The layer.The layer of the flac stream the exception got thrown.</param> public FlacException(Exception innerException, FlacLayer layer) : base("See InnerException for more details.", innerException) { Layer = layer; }