﻿using System;

using Calculator.Common.Error.BasicElement;

namespace Calculator.Common.Error
{
    /// <summary>
    ///     Not ended sequence (Error 5)
    /// </summary>
    [Serializable]
    public sealed class NotEndedSequenceArgs : ExceptionArgs
    {
        private readonly string _notendedsequence;

        public NotEndedSequenceArgs(string input)
        {
            _notendedsequence = input;
        }

        public string NotEntedInputSequence
        {
            get { return _notendedsequence; }
        }

        public override string Message
        {
            get { return (_notendedsequence == null) ? base.Message : "Not ended input sequence"; }
        }
    }
}