using System.Diagnostics.CodeAnalysis;
using System.Runtime.Serialization;

namespace User.Insight.Tracker.Common
{
    [ExcludeFromCodeCoverage]
    [Serializable]
    public class UnauthorisedException : Exception
    {
        public UnauthorisedException() { }

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

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

        // Recommended serialization constructor
        protected UnauthorisedException(SerializationInfo info, StreamingContext context)
        #pragma warning disable SYSLIB0051 // Type or member is obsolete
            : base(info, context)
        #pragma warning restore SYSLIB0051 // Type or member is obsolete
        {
        }
    }
}
