Package net.solosky.maplefetion.event.action

Examples of net.solosky.maplefetion.event.action.SystemErrorEvent


            try {
                    this.proxyChatDialog = this.fetionContext.getDialogFactory().createChatDialog(this.mainBuddy);
                    this.proxyChatDialog.setDialogListener(this);
                  } catch (DialogException e) {
                    logger.warn("Create ChatDialog failed.", e);
                   listener.fireEevent(new SystemErrorEvent(e));
                   return;      //创建失败就需要马上返回,否则下面还会抛出一个 IllegalStateException异常
                  }
          }
    }
   
View Full Code Here


                  } catch (RequestTimeoutException e) {
                    Logger.getLogger(Dialog.class).warn("Open Dialog failed in Executor pool.", e);
                    if(listener!=null) listener.fireEevent(new TimeoutEvent());
                  } catch (DialogException e) {
                    Logger.getLogger(Dialog.class).warn("Open Dialog failed in Executor pool.", e);
                    if(listener!=null) listener.fireEevent(new SystemErrorEvent(e));
                  }catch(Throwable t){
                    Logger.getLogger(Dialog.class).warn("Open Dialog failed in Executor pool.", t);
                    if(listener!=null) listener.fireEevent(new SystemErrorEvent(t));
                  }
      }
    };
    this.context.getFetionExecutor().submitTask(r);
  }
View Full Code Here

    }else {
        try {
          ChatDialogProxy proxy = this.proxyFactory.create(toBuddy);
          proxy.sendChatMessage(message, listener);
        } catch (DialogException e) {
          listener.fireEevent(new SystemErrorEvent(e));
        }
    }
  }
View Full Code Here

        ActionEvent event = this.doHandle(response);
        if(event!=null) {
          this.fireEvent(event);
        }
    } catch (FetionException e) {
      this.fireEvent(new SystemErrorEvent(e));
      throw e;              //重新抛出已知异常
    } catch(Throwable t){
      this.fireEvent(new SystemErrorEvent(t));
      throw new SystemException(t, response.getRequest(), response);    //包装下未知异常为系统异常,重新抛出
    }
    }
View Full Code Here

   * @see net.solosky.maplefetion.client.ResponseHandler#syserror(net.solosky.maplefetion.sipc.SipcRequest)
   */
  @Override
  public void syserror(SipcRequest request, Throwable t)
  {
    this.fireEvent(new SystemErrorEvent(t));
  }
View Full Code Here

TOP

Related Classes of net.solosky.maplefetion.event.action.SystemErrorEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.