public static void Error(string errorMsg, Java.Lang.Exception javaEx,
                          [CallerMemberName] string memberName    = "",
                          [CallerFilePath] string sourceFilePath  = "",
                          [CallerLineNumber] int sourceLineNumber = 0)
 {
     Error(errorMsg, new Exception(javaEx.ToString()), memberName, sourceFilePath, sourceLineNumber);
 }
 void HandleNullReferenceClick(object sender, EventArgs args)
 {
     try
     {
         string a = null;
         a.ToString();
     }
     catch (Exception ex) {
         Java.Lang.Exception javaException = ex.ToJavaException();
         Log.Debug(Tag, "Java Exception: " + javaException.ToString());
         Mint.LogException(javaException);
     }
 }
示例#3
0
        public void OnFailure(Java.Lang.Exception e)
        {
            MaterialAlertDialogBuilder alert = new MaterialAlertDialogBuilder(context);

            alert.SetTitle("Error");
            alert.SetMessage(e.ToString());
            alert.SetNeutralButton("OK", delegate
            {
                alert.Dispose();
            });
            alert.Show();

            Console.WriteLine(e);
        }
 public void OnFailure(Exception p0)
 {
     _mainActivity.OnError(p0.LocalizedMessage ?? p0.Message ?? p0.ToString());
 }
示例#5
0
        public void OnFailure(Java.Lang.Exception exception)
        {
            Log.Info(TAG, "On failure received with {0}", exception?.ToString() ?? "null");

            _onFailure?.Invoke(exception);
        }
示例#6
0
 private void TaskCompletionListener_Failure(object sender, EventArgs e)
 {
     Java.Lang.Exception ex = (Java.Lang.Exception)sender;
     Console.WriteLine("Exception caught: ", ex.ToString());
 }
示例#7
0
 public void error(Java.Lang.String tag, Java.Lang.String msg, Exception e)
 {
     if (_logLevel <= _static_Logger.LOG_ERROR_)
     {
         Console.Error.WriteLine("[" + ((string)tag) + "] " + ((string)msg) + " " + e.ToString());
     }
 }
示例#8
0
 public void OnFailure(Java.Lang.Exception e)
 {
     Log.WriteLine(LogPriority.Debug, "storage", "Failed:" + e.ToString());
     Toast.MakeText(Application.Context, "Failed", ToastLength.Short);
 }
示例#9
0
 public void OnFailure(Java.Lang.Exception p0)
 {
     //The Verification failed. Something went wrong
     Log.Info("Result", "verify: Failure result = " + p0.ToString());
 }
示例#10
0
 public static void LogError(Java.Lang.Exception ex)
 {
     Log.Error(Constants.LoggingLabel, ex.ToString() + Environment.NewLine + Environment.NewLine + ex.GetType().ToString() + Environment.NewLine + ex.Message != null && ex.Message != string.Empty ? ex.Message : "Exception message was empty." + Environment.NewLine + ex.InnerException != null ? ex.InnerException.Message : "InnerException was empty." + Environment.NewLine + ex.StackTrace != null ? ex.StackTrace : "Stacktrace was empty.");
 }
示例#11
0
 public void OnFailure(Java.Lang.Exception ex)
 {
     Toast.MakeText(mainActivity, "LastLocation request failed: " + ex.ToString(), ToastLength.Long).Show();
 }
示例#12
0
 public void error(Java.Lang.String tag, Java.Lang.String msg, Exception e)
 {
     Console.Error.WriteLine("[" + ((string)tag) + "] " + ((string)msg) + " " + e.ToString());
 }