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); } }
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()); }
public void OnFailure(Java.Lang.Exception exception) { Log.Info(TAG, "On failure received with {0}", exception?.ToString() ?? "null"); _onFailure?.Invoke(exception); }
private void TaskCompletionListener_Failure(object sender, EventArgs e) { Java.Lang.Exception ex = (Java.Lang.Exception)sender; Console.WriteLine("Exception caught: ", ex.ToString()); }
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()); } }
public void OnFailure(Java.Lang.Exception e) { Log.WriteLine(LogPriority.Debug, "storage", "Failed:" + e.ToString()); Toast.MakeText(Application.Context, "Failed", ToastLength.Short); }
public void OnFailure(Java.Lang.Exception p0) { //The Verification failed. Something went wrong Log.Info("Result", "verify: Failure result = " + p0.ToString()); }
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."); }
public void OnFailure(Java.Lang.Exception ex) { Toast.MakeText(mainActivity, "LastLocation request failed: " + ex.ToString(), ToastLength.Long).Show(); }
public void error(Java.Lang.String tag, Java.Lang.String msg, Exception e) { Console.Error.WriteLine("[" + ((string)tag) + "] " + ((string)msg) + " " + e.ToString()); }