using System; using System.Runtime.Serialization; namespace Substrate { /// /// The exception that is thrown when IO errors occur during level management operations. /// [Serializable] public class LevelIOException : SubstrateException { /// /// Initializes a new instance of the class. /// public LevelIOException () : base() { } /// /// Initializes a new instance of the class with a custom error message. /// /// A custom error message. public LevelIOException (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 LevelIOException (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 LevelIOException (SerializationInfo info, StreamingContext context) : base(info, context) { } } }