Examples of SystemException


Examples of javax.transaction.SystemException

      catch (RemoteException e)
      {
         // destroy session gone bad.
         destroySession();
         logCauseException(e);
         throw new SystemException(e.toString());
      }
      catch(CannotConnectException e)
      {
         // destroy session gone bad.
         destroySession();
         logCauseException(e);
         throw new SystemException(e.toString());
      }     
      catch (Exception e)
      {
         logCauseException(e);
         throw new SystemException(e.toString());
      }
      finally
      {
         info.pop();
      }
View Full Code Here

Examples of javax.transaction.SystemException

      catch (RemoteException e)
      {
         // destroy session gone bad.
         destroySession();
         logCauseException(e);
         throw new SystemException(e.toString());
      }
      catch (Exception e)
      {
         logCauseException(e);
         throw new SystemException(e.toString());
      }
   }
View Full Code Here

Examples of javax.transaction.SystemException

      catch (RemoteException e)
      {
         // destroy session gone bad.
         destroySession();
         logCauseException(e);
         throw new SystemException(e.toString());
      }
      catch (Exception e)
      {
         logCauseException(e);
         throw new SystemException(e.toString());
      }
   }
View Full Code Here

Examples of jp.ac.kobe_u.cs.prolog.lang.SystemException

      }
    } else if (stream instanceof PrintWriter) {
      PrintWriter out = (PrintWriter) stream;
      if (out.checkError()) {
        if (!forceFlag) {
          throw new SystemException("output stream error");
        }
      }
      out.flush();
      if (out.equals(engine.getUserOutput())
          || out.equals(engine.getUserError())) {
View Full Code Here

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

Examples of net.solosky.maplefetion.client.SystemException

    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

Examples of net.solosky.maplefetion.client.SystemException

      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

Examples of net.solosky.maplefetion.client.SystemException

    } 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

Examples of net.solosky.maplefetion.client.SystemException

      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

Examples of net.solosky.maplefetion.client.SystemException

    try {
          handler.handle(response);
        } catch (FetionException e) {
          throw e;
        }catch(Throwable t) {
          throw new SystemException(t, response.getRequest(), response);
        }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.