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