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

namespace Valg.EVA.Skanning.UserInterfaceElements.BrowserLaunch
{
    
    
    
    
    [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors"), Serializable]
    public class OpenWebBrowserException : Exception, IException
    {
        
        
        
        public OpenWebBrowserException()
            : base("Default web browser not found.")
        {
        }

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

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

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

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

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

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

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

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