using System;
using System.Runtime.Serialization;
using Valg.EVA.Skanning.Resources.Language;
using Valg.EVA.Skanning.UserInterfaceElements.MessageBox;

namespace Valg.EVA.Skanning.UserInterfaceElements.ErrorHandling
{
    
    
    
    [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors"), Serializable]
    public class ConfigurationPresentationException : Exception, IException
    {
        public ConfigurationPresentationException(string message)
            : base(message)
        { }

        
        
        
        
        public ConfigurationPresentationException(Exception inner)
            : base(string.Empty, inner)
        {
        }

        public ConfigurationPresentationException(string message, Exception innerException)
            : base(message, innerException)
        { }

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

        public ConfigurationPresentationException()
        { }

        
        
        
        
        public string Title { get { return LanguageString.Title_Error; } }

        
        
        
        
        public string Problem { get { return LanguageString.Error_Configuration; } }

        
        
        
        
        public string Solution { get { return LanguageString.Error_ApplicationMustShutDown; } }

        public MessageBoxType MessageBoxType { get { return MessageBoxType.Error; } }
    }
}
