Ejemplo n.º 1
0
        /// <summary>What a Terrible Failure: Report an exception that should never happen.</summary>
        /// <remarks>
        /// What a Terrible Failure: Report an exception that should never happen.
        /// Similar to
        /// <see cref="wtf(string, System.Exception)">wtf(string, System.Exception)</see>
        /// , with a message as well.
        /// </remarks>
        /// <param name="tag">Used to identify the source of a log message.</param>
        /// <param name="msg">The message you would like logged.</param>
        /// <param name="tr">An exception to log.  May be null.</param>
        public static int wtf(string tag, string msg, System.Exception tr)
        {
            android.util.Log.TerribleFailure what = new android.util.Log.TerribleFailure(msg,
                                                                                         tr);
            int bytes = println_native(LOG_ID_MAIN, ASSERT, tag, msg + '\n' + getStackTraceString
                                           (tr));

            sWtfHandler.onTerribleFailure(tag, what);
            return(bytes);
        }
Ejemplo n.º 2
0
 public void onTerribleFailure(string tag, android.util.Log.TerribleFailure what)
 {
     XobotOS.Runtime.Util.FatalError(tag, what);
 }
Ejemplo n.º 3
0
		/// <summary>What a Terrible Failure: Report an exception that should never happen.</summary>
		/// <remarks>
		/// What a Terrible Failure: Report an exception that should never happen.
		/// Similar to
		/// <see cref="wtf(string, System.Exception)">wtf(string, System.Exception)</see>
		/// , with a message as well.
		/// </remarks>
		/// <param name="tag">Used to identify the source of a log message.</param>
		/// <param name="msg">The message you would like logged.</param>
		/// <param name="tr">An exception to log.  May be null.</param>
		public static int wtf(string tag, string msg, System.Exception tr)
		{
			android.util.Log.TerribleFailure what = new android.util.Log.TerribleFailure(msg, 
				tr);
			int bytes = println_native(LOG_ID_MAIN, ASSERT, tag, msg + '\n' + getStackTraceString
				(tr));
			sWtfHandler.onTerribleFailure(tag, what);
			return bytes;
		}