using System;
namespace VersOne.Epub
{
///
/// Represents an exception thrown by the EpubReader due to a SMIL document parsing error.
///
public class EpubSmilException : EpubReaderException
{
///
/// Initializes a new instance of the class with a specified SMIL file path.
///
/// The path of the SMIL file that caused the error.
public EpubSmilException(string smilFilePath)
{
SmilFilePath = smilFilePath;
}
///
/// Initializes a new instance of the class with a specified error and a specified SMIL file path.
///
/// The message that describes the error.
/// The path of the SMIL file that caused the error.
public EpubSmilException(string message, string smilFilePath)
: base(message)
{
SmilFilePath = smilFilePath;
}
///
/// Initializes a new instance of the class with a specified error message, a reference to the inner exception
/// that is the cause of this exception, and a specified SMIL file path.
///
/// The error message that explains the reason for the exception.
/// The exception that is the cause of the current exception, or a null reference if no inner exception is specified.
/// The path of the SMIL file that caused the error.
public EpubSmilException(string message, Exception? innerException, string smilFilePath)
: base(message, innerException)
{
SmilFilePath = smilFilePath;
}
///
/// Gets the path of the SMIL file that caused the error.
///
public string SmilFilePath { get; }
}
}