public void OnError(Java.Lang.Exception p0) { if (onError != null) { onError(); } }
//public void Dispose() //{ // throw new NotImplementedException(); //} public void OnError(Java.Lang.Exception p0) { // An error occurred while processing. Log it. Processing will continue Log.Error("OCR", "Error: " + p0.Message); if (BuildConfig.Debug) { // Make the error easily visible to the developer string message = p0.Message; if (message == null) { message = "Unspecified error while creating the service. See logcat for details."; } else { if (message.Contains("ChineseJapanese.rom")) { message = "Chinese, Japanese and Korean are available in EXTENDED version only. Contact us for more information."; } if (message.Contains("Russian.edc")) { message = "Cyrillic script languages are available in EXTENDED version only. Contact us for more information."; } else if (message.Contains(".trdic")) { message = "Translation is available in EXTENDED version only. Contact us for more information."; } } activity.errorTextView.Text = message; } }
public override void OnError(Java.Lang.Exception error) { System.Diagnostics.Debug.WriteLine("Error received (" + error.GetType() + "): " + error.Message); //mLogger.debug(error.toString()); ShowDialog("An error occurred "); }
public void OnError(Java.Lang.Exception exc) { AlertDialog.Builder builder = new AlertDialog.Builder(context); builder.SetTitle("Error"); builder.SetMessage(exc.Message); builder.Create().Show(); }
public void OnError(Java.Lang.Exception p0) { System.Console.WriteLine("Error received (" + p0.GetType().ToString() + "): " + p0.Message); System.Console.WriteLine(p0.ToString()); ShowDialog("An error occurred (" + p0.GetType().ToString() + "): " + p0.Message); }
/// <summary> /// Record an application exception, along with a message. /// </summary> /// <param name="message">The message to record along with the exception.</param> /// <param name="exception">The exception to record.</param> public static void LogError(string message, System.Exception exception) { #if __IOS__ NativeFlurry.LogError( string.Format(exception.GetType().FullName, message), exception.ToString(), new NSException(exception.GetType().FullName, exception.Message, null)); #elif __ANDROID__ Java.Lang.Exception javaEx = new Java.Lang.Exception(exception.Message); StackTrace stackTrace = new StackTrace(exception, true); StackTraceElement[] trace = new StackTraceElement[stackTrace.FrameCount]; for (int index = 0; index < stackTrace.FrameCount; ++index) { StackFrame frame = stackTrace.GetFrame(index); trace[index] = new StackTraceElement(frame.GetMethod().DeclaringType.Name, frame.GetMethod().Name, frame.GetFileName(), frame.GetFileLineNumber()); } javaEx.SetStackTrace(trace); NativeFlurry.OnError( string.Format(exception.GetType().FullName, message), exception.ToString(), javaEx); #elif WINDOWS_PHONE NativeFlurry.LogError(message, exception); #endif }
void IOnFailureListener.OnFailure(Java.Lang.Exception e) { Debug.WriteLine("FailureListener : " + e.Message); if (OnFailureAction != null) { OnFailureAction(e.Message); } }
public void OnFailure(RegistrationResponse res, Java.Lang.Exception e) { System.Console.WriteLine("Exception ::" + e.Message); //Send call back to caller if (OnRegistrationFailedHandler != null) { OnRegistrationFailedHandler(res, e); } }
public void OnFailure(Java.Lang.Exception e) { int errorCode = ExceptionHandle.handle(view.GetActivity(), e); if (ExceptionHandle.SOLVED != errorCode) { Log.Error(TAG, "obtainProductInfo: " + e.Message); } view.ShowProducts(null); }
public void OnFailure(Java.Lang.Exception e) { try { } catch (System.Exception ex) { var msg = ex.Message + "\n" + ex.StackTrace; System.Diagnostics.Debug.WriteLine(msg); } }
public void Call(Session session, SessionState state, Exception exception) { // Make a request for 'Me' information about the current user if (session.IsOpened) { Intent mainIntent = new Intent(this, typeof(MainActivity)); mainIntent.PutExtra("facebookToken", session.AccessToken); SetResult(Result.FirstUser, mainIntent); Finish(); } }
private void postError(int message, Java.Lang.Exception e) { mMainHandler.Post(new Runnable(() => { void Run() { if (mCallback != null) { mCallback.onRtspUpdate(message, e); } } })); }
public void OnSetImageUriComplete(CropImageView view, Android.Net.Uri uri, Java.Lang.Exception error) { if (error == null) { Toast.MakeText(Activity, "Image load successful", ToastLength.Long).Show(); } else { Log.Error("AIC", "Failed to load image by URI", error); Toast.MakeText(Activity, "Image load failed: " + error.Message, ToastLength.Long).Show(); } }
public static Java.Lang.Exception GetJavaException(this System.Exception e) { var javaException = new Java.Lang.Exception(e.Message); javaException.SetStackTrace(GetTraceFromMonoException(e)); if (e.InnerException != null) { javaException.InitCause(e.InnerException.GetJavaException()); } return(javaException); }
public void OnError(Java.Lang.Exception error) { System.Text.StringBuilder sb = new System.Text.StringBuilder(); sb.AppendLine($"Error {error.LocalizedMessage}"); Android.Widget.Toast.MakeText ( this.context, sb.ToString(), Android.Widget.ToastLength.Long ).Show(); return; }
public void OnFailure(Java.Lang.Exception e) { // Upload failed Log.Warn(TAG, "uploadFromUri:onFailure", e); mDownloadUrl = null; // [START_EXCLUDE] HideProgressDialog(); Toast.MakeText(this.BaseContext, "Error: upload failed", ToastLength.Short).Show(); UpdateUI(mAuth.CurrentUser); // [END_EXCLUDE] }
public void OnSendingFailed(AndroidErrorReport androidReport, Java.Lang.Exception exception) { if (FailedToSendErrorReport == null) { return; } var report = ErrorReportCache.GetErrorReport(androidReport); var e = new FailedToSendErrorReportEventArgs { Report = report, Exception = exception }; FailedToSendErrorReport(null, e); }
protected virtual void UnableToLoadVideoInfo(Exception ex = null) { var textBlock = FindViewById <TextView>(Resource.Id.textView1); textBlock.Text = "Unable to Load Video Information"; var spinner = FindViewById <ProgressBar>(Resource.Id.progressSpinner); spinner.Visibility = ViewStates.Invisible; if (ex != null) { Log.Error($"YTII.{ActivityName}", ex.Message); } }
public void OnFailure(Exception e) { if (IsMonitoring) { // Rather than force killing all running geofences, delegate action on geofence failures to the application. // This lets the application decide to ignore the error, perform retry logic, stop monitoring as below, or any other behavior. // StopMonitoringAllRegions(); ((GeofenceImplementation)CrossGeofence.Current).LocationHasError = true; if (!string.IsNullOrEmpty(e?.Message)) { CrossGeofence.GeofenceListener.OnError(e.Message); } } }
public void OnFailure(Java.Lang.Exception e) { progressDialog.Dismiss(); string LectureTitle = uploadEditLectureName.Text; Intent gotoNote = new Intent(this, typeof(UploadNoteActivity)); gotoNote.PutExtra("lectureVidName", Vidname); gotoNote.PutExtra("lectureVidPath", Vidpath); gotoNote.PutExtra("lectureVidSize", Vidsize); gotoNote.PutExtra("lectureTitle", LectureTitle); gotoNote.PutExtra("course", course); StartActivity(gotoNote); Finish(); Toast.MakeText(this, "Failed to upload lecture please check internet connection and try again", ToastLength.Short).Show(); }
void HandleException(Java.Lang.Exception e) { try { ShowShortToast(e.Message); mPublisher.StopPublish(); mPublisher.StopRecord(); btnPublish.Text = "Publish"; btnRecord.Text = "Record"; btnSwitchEncoder.Enabled = true; } catch { } }
public void OnPlayerError(ExoPlaybackException e) { string errorstring = null; if (e.Type == ExoPlaybackException.TypeRenderer) { Java.Lang.Exception cause = e.RendererException; if (cause is Com.Google.Android.Exoplayer2.Mediacodec.MediaCodecRenderer.DecoderInitializationException) { // Special case for decoder initialization failures. Com.Google.Android.Exoplayer2.Mediacodec.MediaCodecRenderer.DecoderInitializationException decoderInitializationException = (Com.Google.Android.Exoplayer2.Mediacodec.MediaCodecRenderer.DecoderInitializationException)cause; if (decoderInitializationException.DecoderName == null) { if (decoderInitializationException.Cause is Com.Google.Android.Exoplayer2.Mediacodec.MediaCodecUtil.DecoderQueryException) { errorstring = _context.GetString(Resource.String.error_querying_decoders); } else if (decoderInitializationException.SecureDecoderRequired) { errorstring = _context.GetString(Resource.String.error_no_secure_decoder, decoderInitializationException.MimeType); } else { errorstring = _context.GetString(Resource.String.error_no_decoder, decoderInitializationException.MimeType); } } else { errorstring = _context.GetString(Resource.String.error_instantiating_decoder, decoderInitializationException.DecoderName); } } } if (errorstring != null) { ShowToast(errorstring); } _playerNeedsSource = true; UpdateButtonVisibilities(); ShowControls(); }
public void OnFailure(Java.Lang.Exception e) { progressDialog.Dismiss(); Intent gotoEval = new Intent(this, typeof(SetEvaluationActivity)); gotoEval.PutExtra("lectureVidName", Vidname); gotoEval.PutExtra("lectureVidPath", Vidpath); gotoEval.PutExtra("lectureVidSize", Vidsize); gotoEval.PutExtra("lectureLecName", Lecname); gotoEval.PutExtra("lectureLecPath", Lecpath); gotoEval.PutExtra("lectureLecSize", Lecsize); gotoEval.PutExtra("lectureTitle", LecTitle); gotoEval.PutExtra("course", course); StartActivity(gotoEval); Finish(); Toast.MakeText(this, "Failed to upload lecture please check internet connection and try again", ToastLength.Short).Show(); }
public void OnError(Exception e) { var exception = e as UnsupportedDrmException; if (exception != null) { // Special case DRM failures. var stringId = ExoPlayerUtil.SdkInt < 18 ? Resource.String.drm_error_not_supported : exception.Reason == UnsupportedDrmException.ReasonUnsupportedScheme ? Resource.String.drm_error_unsupported_scheme : Resource.String.drm_error_unknown; Toast.MakeText(ApplicationContext, stringId, ToastLength.Long).Show(); } _playerNeedsPrepare = true; UpdateButtonVisibilities(); ShowControls(); }
public void OnFailure(Java.Lang.Exception e) { Log.Info(TAG, "Buy OnFailure"); int errorCode = ExceptionHandle.handle(view.GetActivity(), e); if (errorCode != ExceptionHandle.SOLVED) { Log.Error(TAG, "createPurchaseIntent, returnCode: " + errorCode); switch (errorCode) { case OrderStatusCode.OrderProductOwned: presenter.ShowSubscription(Productid); break; default: break; } } }
public Pair GetErrorMessage(ExoPlaybackException e) { string errorstring = activity.ApplicationContext.GetString(Resource.String.error_generic); if (e.Type == ExoPlaybackException.TypeRenderer) { Java.Lang.Exception cause = e.RendererException; if (cause is DecoderInitializationException) { // Special case for decoder initialization failures. DecoderInitializationException decoderInitializationException = (DecoderInitializationException)cause; if (decoderInitializationException.DecoderName == null) { if (decoderInitializationException.Cause is DecoderQueryException) { errorstring = activity.ApplicationContext.GetString(Resource.String.error_querying_decoders); } else if (decoderInitializationException.SecureDecoderRequired) { errorstring = activity.ApplicationContext.GetString(Resource.String.error_no_secure_decoder, decoderInitializationException.MimeType); } else { errorstring = activity.ApplicationContext.GetString(Resource.String.error_no_decoder, decoderInitializationException.MimeType); } } else { errorstring = activity.ApplicationContext.GetString(Resource.String.error_instantiating_decoder, decoderInitializationException.DecoderName); } } } return(Pair.Create(0, errorstring)); }
private void handleCropResult(Android.Net.Uri uri, Bitmap bitmap, Java.Lang.Exception error) { if (error == null) { Intent intent = new Intent(Activity, typeof(CropResultActivity)); if (uri != null) { intent.PutExtra("URI", uri); } else { CropResultActivity.mImage = mCropImageView.GetCropShape() == CropImageView.CropShape.Oval ? CropImage.ToOvalBitmap(bitmap) : bitmap; } StartActivity(intent); } else { Log.Error("AIC", "Failed to crop image", error); Toast.MakeText(Activity, "Image crop failed: " + error.Message, ToastLength.Long).Show(); } }
/// <summary> /// Invoked if a {@link RendererBuilder} encounters an error. /// </summary> /// <param name="e">Describes the error.</param> internal void OnRenderersError(Exception e) { if (_internalErrorListener != null) { _internalErrorListener.OnRendererInitializationError(e); } foreach (var listener in _listeners) { listener.OnError(e); } _rendererBuildingState = RendererBuildingStateIdle; MaybeReportPlayerState(); }
public void OnDrmSessionManagerError(Exception e) { if (_internalErrorListener != null) { _internalErrorListener.OnDrmSessionManagerError(e); } }
public void OnFailure(Java.Lang.Exception e) { Failure?.Invoke(this, new TaskCompletionFailureEventArgs { Cause = e.Message }); }
public void OnError(Java.Lang.Exception p0) { throw new NotImplementedException(); }
public void OnInitFailed(Java.Lang.Exception p0) { Log.Error(Tag, "onInitFailed : " + p0.Message); }
public void OnRendererInitializationError(Exception e) { PrintInternalError("rendererInitError", e); }
/// <summary> /// Record an application exception, along with a message. /// </summary> /// <param name="message">The message to record along with the exception.</param> /// <param name="exception">The exception to record.</param> public static void LogError(string message, System.Exception exception) { #if __IOS__ NativeFlurry.LogError( string.Format(exception.GetType().FullName, message), exception.ToString(), new NSException (exception.GetType().FullName, exception.Message, null)); #elif __ANDROID__ Java.Lang.Exception javaEx = new Java.Lang.Exception(exception.Message); StackTrace stackTrace = new StackTrace(exception, true); StackTraceElement[] trace = new StackTraceElement[stackTrace.FrameCount]; for (int index = 0; index < stackTrace.FrameCount; ++index) { StackFrame frame = stackTrace.GetFrame(index); trace[index] = new StackTraceElement(frame.GetMethod().DeclaringType.Name, frame.GetMethod().Name, frame.GetFileName(), frame.GetFileLineNumber()); } javaEx.SetStackTrace(trace); NativeFlurry.OnError( string.Format(exception.GetType().FullName, message), exception.ToString(), javaEx); #elif WINDOWS_PHONE NativeFlurry.LogError(message, exception); #endif }
public static void e(string tag, string str, Exception e) { if (EnableLog) Log.Error(tag, e, str); }
public static void w(string tag, Exception e) { if (EnableLog) Log.Warn(tag, e); }
public void OnDrmSessionManagerError(Exception e) { PrintInternalError("drmSessionManagerError", e); }
private void PrintInternalError(string type, Exception e) { Log.Error(Tag, "internalError [" + GetSessionTimeString() + ", " + type + "]", e); }
public void OnFailure(Java.Lang.Exception e) { Failure?.Invoke(this, new EventArgs()); }
public void OnError(Exception e) { Log.Error(Tag, "playerFailed [" + GetSessionTimeString() + "]", e); }