Antlr3.Tool.ErrorManager.InternalError C# (CSharp) Method

InternalError() public static method

public static InternalError ( Object error ) : void
error Object
return void
        public static void InternalError( Object error )
        {
            StackFrame location =
                GetLastNonErrorManagerCodeLocation( new Exception() );
            String msg = location + ": " + error;
            ErrorManager.Error( MSG_INTERNAL_ERROR, msg );
        }

Same methods

ErrorManager::InternalError ( Object error, Exception e ) : void

Usage Example

Beispiel #1
0
        protected static ReportData DecodeReportData(string dataS)
        {
            ReportData           data = new ReportData();
            IEnumerator <string> st   = dataS.Split('\t').Cast <string>().GetEnumerator();

            FieldInfo[] fields = typeof(ReportData).GetFields();
            foreach (FieldInfo f in fields)
            {
                st.MoveNext();
                string v = st.Current;
                try
                {
                    if (f.FieldType == typeof(string))
                    {
                        f.SetValue(data, v);
                    }
                    else if (f.FieldType == typeof(double))
                    {
                        f.SetValue(data, double.Parse(v));
                    }
                    else
                    {
                        f.SetValue(data, int.Parse(v));
                    }
                }
                catch (Exception e)
                {
                    ErrorManager.InternalError("Can't get data", e);
                }
            }
            return(data);
        }
All Usage Examples Of Antlr3.Tool.ErrorManager::InternalError