예제 #1
0
 public void OnError(IHTTPRequest request, IHTTPResponse response, Exception exception)
 {
     if (listener != null)
     {
         listener.OnError(request, response, exception);
     }
 }
예제 #2
0
        public override void OnError(IHTTPResponse response, Exception exception)
        {
            IHTTPListener listener = getEffectiveListener();

            if (listener != null)
            {
                UnityThreadHelper.Dispatcher.Dispatch(delegate
                {
                    listener.OnError(this, response, exception);
                });
            }
        }
예제 #3
0
        public virtual void OnError(IHTTPResponse response, Exception exception)
        {
            IHTTPListener effectiveListener = getEffectiveListener();

            if (effectiveListener != null)
            {
                try
                {
                    effectiveListener.OnError(this, response, exception);
                }
                catch (Exception exception2)
                {
                    Debug.LogError("A listener threw an exception.");
                    Debug.LogException(exception2);
                }
            }
        }
 public override void perform(IHTTPListener inner)
 {
     inner.OnError(request, response, exception);
 }