Пример #1
0
            public void OnError(Entity errorObj)
            {
                TJError tjError  = errorObj.JavaCast <TJError>();
                string  errorStr = tjError.ErrorCode + "-" + tjError.ErrorMessage;

                //string error = tjError.ToString ();
                //
                Toast.MakeText(outerInstance, errorStr, ToastLength.Long).Show();
                //
                outerInstance.Finish();
            }
Пример #2
0
            public void OnError(Entity error)
            {
                TJError tjError = error.JavaCast <TJError>();

                IList <TJError.ProxyObject> testlist = new List <TJError.ProxyObject>();


                testlist = tjError.Proxy_object;

                if (testlist.Count > 0)
                {
                    Toast.MakeText(outerInstance.mContext, testlist [0].HttpStatusCode + testlist [0].ServiceIdentifier, ToastLength.Short).Show();
                }
                outerInstance.openErrorActivity(tjError);
            }
Пример #3
0
        private void openErrorActivity(Entity error)
        {
            TJError tjError = error.JavaCast <TJError>();

            Intent errorIntent = new Intent(mContext, typeof(MessageActivity));

            if (tjError.ErrorCode != null)
            {
                errorIntent.PutExtra("Message", tjError.ErrorCode);
            }
            else
            {
                errorIntent.PutExtra("Message", "Uncaught Exception");
            }

            errorIntent.PutExtra("LocalizedMessage", tjError.ErrorMessage);
            errorIntent.PutExtra("InvokedBy", INVOKED_BY_SDK_INIT_ERROR);

            mContext.StartActivity(errorIntent);
        }
Пример #4
0
 public void OnError(Entity error)
 {
     Log.I(outerInstance.TAG, "initializeSDK - onError", "", "");
     outerInstance.openErrorActivity(error);
 }