using System;

namespace FileHelpers
{
    /// <summary>Base class for all the library Exceptions.</summary>
    [Serializable]
    public class FileHelpersException : Exception
    {
        /// <summary>Basic constructor of the exception.</summary>
        /// <param name="message">Message of the exception.</param>
        public FileHelpersException(string message)
            : base(message) {}

        /// <summary>Basic constructor of the exception.</summary>
        /// <param name="message">Message of the exception.</param>
        /// <param name="innerEx">The inner Exception.</param>
        public FileHelpersException(string message, Exception innerEx)
            : base(message, innerEx) {}

        /// <summary>Basic constructor of the exception.</summary>
        /// <param name="message">Message of the exception.</param>
        /// <param name="line">The line number where the problem was found</param>
        /// <param name="column">The column number where the problem was found</param>
        public FileHelpersException(int line, int column, string message)
            : base("Line: " + line.ToString() + " Column: " + column.ToString() + ". " + message) {}
    }
}