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 DatabaseConnectionPresentationException : Exception, IException
    {
        
        
        
        public DatabaseConnectionPresentationException()
            : base("No database connection.")
        {
        }

        public DatabaseConnectionPresentationException(string message)
            : base(message)
        { }

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

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

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

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

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

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