hessiancsharp.io.CHessianInput.ReadFault C# (CSharp) Method

ReadFault() private method

Reads a fault.
private ReadFault ( ) : Object>.Dictionary
return Object>.Dictionary
        private Dictionary<Object, Object> ReadFault()
        {
            Dictionary<Object, Object> htFault = new Dictionary<Object, Object>();

            int intCode = Read();
            for (; intCode > 0 && intCode != 'z'; intCode = Read())
            {
                m_intPeek = intCode;

                object objKey = ReadObject();
                object objValue = ReadObject();

                if (objKey != null && objValue != null)
                    htFault.Add(objKey, objValue);
            }

            if (intCode != PROT_REPLY_END)
                throw new CHessianException("unknown fault reason");

            return htFault;
        }