

namespace Antlr.Runtime
{
    using Exception = System.Exception;
#if !SILVERLIGHT
    using SerializationInfo = System.Runtime.Serialization.SerializationInfo;
#endif
    using StreamingContext = System.Runtime.Serialization.StreamingContext;
#if !SILVERLIGHT
    [System.Serializable]
#endif
    internal class MismatchedNotSetException : MismatchedSetException
    {
        public MismatchedNotSetException()
        {
        }

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

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

        public MismatchedNotSetException(BitSet expecting, IIntStream input)
            : base(expecting, input)
        {
        }

        public MismatchedNotSetException(string message, BitSet expecting, IIntStream input)
            : base(message, expecting, input)
        {
        }

        public MismatchedNotSetException(string message, BitSet expecting, IIntStream input, Exception innerException)
            : base(message, expecting, input, innerException)
        {
        }
#if !SILVERLIGHT
        protected MismatchedNotSetException(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
        }
#endif
        public override string ToString()
        {
            return "MismatchedNotSetException(" + UnexpectedType + "!=" + Expecting + ")";
        }
    }
}
