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 UnhandledPresentationException : Exception, IException
    {
        
        
        
        
        public UnhandledPresentationException(Exception inner)
            : base(string.Empty, inner)
        {
        }

        public UnhandledPresentationException()
        { }

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

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

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

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

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

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

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