Package net.solosky.maplefetion.client

Examples of net.solosky.maplefetion.client.SystemException


             }
            
             //如果当前事件是系统错误事件,抛出系统错误异常
             if(this.event.getEventType()==ActionEventType.SYSTEM_ERROR){
               SystemErrorEvent evt = (SystemErrorEvent) this.event;
               throw new SystemException(evt.getCause());
             }
            
             //如果不是上面的任何一种,就直接返回事件
             return this.event;
        }
View Full Code Here


    try {
          this.processIncoming(new MinaBufferReader(tmpBuffer));
        } catch (FetionException e) {
           this.raiseException(e);
        }catch(Throwable t) {
          this.raiseException(new SystemException(t, new String(tmpBuffer.array())));
        }
  }
View Full Code Here

      try {
          this.processIncoming(new ByteArrayReader(buff, len));
        } catch (FetionException e) {
           this.raiseException(e);
        }catch(Throwable t) {
          this.raiseException(new SystemException(t, new String(Arrays.copyOfRange(buff, offset, offset+len))));
        }
    }
View Full Code Here

    } 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

      try {
            byte[] encrypted = StringHelper.base64Decode(c);
            byte[] decrypted = DigestHelper.AESDecrypt(encrypted, user.getAesKey(), user.getAesIV());
            return new String(decrypted,"utf8");
        } catch (IOException ex) {
          throw new SystemException("decrypt credential failed.", ex);
        }
    }
View Full Code Here

    try {
          handler.handle(response);
        } catch (FetionException e) {
          throw e;
        }catch(Throwable t) {
          throw new SystemException(t, response.getRequest(), response);
        }
  }
View Full Code Here

        try {
              handler.handle(notify);
            } catch (FetionException e) {
              throw e;
            }catch(Throwable t) {
              throw new SystemException(t,notify);
            }
      }
    }
View Full Code Here

      try {
            byte[] encrypted = StringHelper.base64Decode(c);
            byte[] decrypted = DigestHelper.AESDecrypt(encrypted, user.getAesKey(), user.getAesIV());
            return new String(decrypted,"utf8");
        } catch (IOException ex) {
          throw new SystemException("decrypt credential failed.", ex);
        }
    }
View Full Code Here

TOP

Related Classes of net.solosky.maplefetion.client.SystemException

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.