Beispiel #1
0
        /// <summary>
        /// Gets the default string representation of the exception.
        /// </summary>
        internal string BaseToString()
        {
            string type_name  = DTypeDesc.GetFullName(this.GetType(), new StringBuilder()).ToString();
            int    int_line   = Core.Convert.ObjectToInteger(line.Value);
            int    int_column = Core.Convert.ObjectToInteger(column.Value);
            string str_file   = Core.Convert.ObjectToString(file.Value);

            if (int_line > 0 && int_column > 0 && str_file != String.Empty)
            {
                return(CoreResources.GetString("stringified_exception_debug",
                                               type_name,
                                               Core.Convert.ObjectToString(message.Value),
                                               str_file, int_line, int_column,
                                               getTraceAsString(null)));
            }
            else
            {
                return(CoreResources.GetString("stringified_exception",
                                               type_name,
                                               Core.Convert.ObjectToString(message.Value),
                                               getTraceAsString(null)));
            }
        }