using System; using System.Runtime.Serialization; namespace Substrate.Data { /// /// The exception that is thrown when IO errors occur during high-level data resource management operations. /// [Serializable] public class DataIOException : SubstrateException { /// /// Initializes a new instance of the class. /// public DataIOException () : base() { } /// /// Initializes a new instance of the class with a custom error message. /// /// A custom error message. public DataIOException (string message) : base(message) { } /// /// Initializes a new instance of the class with a custom error message and a reference to /// an InnerException representing the original cause of the exception. /// /// A custom error message. /// A reference to the original exception that caused the error. public DataIOException (string message, Exception innerException) : base(message, innerException) { } /// /// Initializes a new instance of the class with serialized data. /// /// The object that holds the serialized object data. /// The contextual information about the source or destination. protected DataIOException (SerializationInfo info, StreamingContext context) : base(info, context) { } } }