using System;
using System.Runtime.Serialization;
namespace Cobilas.IO.Atlf {
[Serializable]
#pragma warning disable CS1591 // O comentário XML ausente não foi encontrado para o tipo ou membro visível publicamente
public class ATLFException : Exception {
public ATLFException() { }
public ATLFException(string message) : base(message) { }
public ATLFException(string message, Exception inner) : base(message, inner) { }
protected ATLFException(SerializationInfo info, StreamingContext context) : base(info, context) { }
public static ATLFException GetATLFException(string format, params object[] args)
=> new ATLFException(string.Format(format, args));
/// msg:The ATLFWriter object has already been closed.
public static InvalidOperationException ATLFClosed()
=> new InvalidOperationException("The ATLF object has already been closed.");
public static InvalidOperationException ATLFReaderAfterClosing()
=> new InvalidOperationException("The read operation cannot be done after closing the ATLF object!");
public static InvalidOperationException ATLFReaderTagAfterClosing()
=> new InvalidOperationException("The tag reading operation cannot be done after closing the ATLF object!");
/// msg:It is not possible to release resources to the flow after closing the ATLF object.
public static InvalidOperationException ATLFFlowAfterClosing()
=> new InvalidOperationException("It is not possible to release resources to the flow after closing the ATLF object.");
public static InvalidOperationException ATLFTagsAfterClosing()
=> new InvalidOperationException("You cannot add new tags to the stream after closing the ATLF object.");
}
#pragma warning restore CS1591 // O comentário XML ausente não foi encontrado para o tipo ou membro visível publicamente
}