// MonoGame - Copyright (C) The MonoGame Team // This file is subject to the terms and conditions defined in // file 'LICENSE.txt', which is part of this source code package. using System; using System.Runtime.Serialization; namespace Microsoft.Xna.Framework.Content.Pipeline { /// /// Thrown when errors are encountered during a content pipeline build. /// [SerializableAttribute] public class PipelineException : Exception { /// /// Creates an instance of PipelineException. /// public PipelineException() { } /// /// Creates an instance of PipelineException with information on serialization and streaming context for the related content item. /// /// Information necessary for serialization and deserialization of the content item. /// Information necessary for the source and destination of a given serialized stream. Also provides an additional caller-defined context. protected PipelineException( SerializationInfo serializationInfo, StreamingContext streamingContext ) { } /// /// Initializes a new instance of the PipelineException class with the specified error message. /// /// A message that describes the error. public PipelineException( string message ) : base(message) { } /// /// Initializes a new instance of the PipelineException class with the specified error message and a reference to the inner exception that is the cause of this exception. /// /// A message that describes the error. /// The exception that is the cause of the current exception. If innerException is not a null reference, the current exception is raised in a catch block that handles the inner exception. public PipelineException( string message, Exception innerException ) :base(message, innerException) { } /// /// Initializes a new instance of the PipelineException class with the specified error message. /// /// A message that describes the error. /// Array of strings specifying message-related arguments. public PipelineException( string message, params Object[] messageArgs ) : base(String.Format(message, messageArgs)) { } } }