using System;
using System.Runtime.Serialization;

namespace Katteker.Exceptions
{
    /// <summary>
    /// Represent an error message in the Katteker update process.
    /// </summary>
    [Serializable]
    public class KattekerUpdateException : Exception
    {
        /// <summary>
        /// Creates a new instance of the <see cref="KattekerUpdateException"/> class with the error message.
        /// </summary>
        public KattekerUpdateException(string message) : base(message)
        {
        }

        /// <summary>
        /// Creates a new instance of the <see cref="KattekerUpdateException"/> with the error message and inner exception.
        /// </summary>
        public KattekerUpdateException(string message, Exception innerException) : base(message, innerException)
        {
        }

        protected KattekerUpdateException(SerializationInfo info, StreamingContext context) : base(info, context)
        {
        }
    }
}