Examples of NetworkException


Examples of com.art.anette.exceptions.NetworkException

            if (NetworkControl.wasCausedByClosedSocket(ex)) {
                logger.info("Client closed the connection");
                return false;
            } else {
                logger.severe(null, ex);
                throw new NetworkException("Sending failed!", ex);
            }
        }
    }
View Full Code Here

Examples of com.art.anette.exceptions.NetworkException

            logger.info("Connected to " + hostname + ':' + port);
            fireEvent(NetworkEvent.NEType.connected);
        } catch (IOException ex) {
            fireEvent(NetworkEvent.NEType.connectingError);
            disconnect(false, quiet, true);
            throw new NetworkException("Could not connect to server " + hostname + ':' + port + "! Error=" + ex.getMessage(), ex);
        } catch (ClassNotFoundException ex) {
            fireEvent(NetworkEvent.NEType.connectingError);
            disconnect(false, false, true);
            throw new NetworkException("Could not connect to server " + hostname + ':' + port + "! Error=" + ex.getMessage(), ex);
        }
    }
View Full Code Here

Examples of com.art.anette.exceptions.NetworkException

    private Response synchroneousRequest(final Request r) throws NetworkException {
        try {
            send(r);
            return receive();
        } catch (ClassNotFoundException ex) {
            throw new NetworkException("Can't send a request to the server.", ex);
        } catch (IOException ex) {
            throw new NetworkException("Can't send a request to the server.", ex);
        }
    }
View Full Code Here

Examples of com.art.anette.exceptions.NetworkException

            SSLServerSocketFactory socketfactory = context.getServerSocketFactory();
            srvSocket = (SSLServerSocket) socketfactory.createServerSocket(port);
            logger.info("Server is online on port " + port);
        } catch (Exception ex) {
            logger.severe(null, ex);
            throw new NetworkException("Failed! Can't setup socket on port " + port + '!', ex);
        }
    }
View Full Code Here

Examples of com.golden.gamedev.engine.network.NetworkException

      }
     
      if (waitTimeOut != -1) {
        if (System.currentTimeMillis() - startTime > waitTimeOut) {
          // time out reached
          throw new NetworkException("Packet time out " + waitTimeOut
                  + "ms");
        }
      }
     
      try {
View Full Code Here

Examples of com.sun.sgs.impl.service.data.store.NetworkException

    protected long createObjectInternal(Transaction txn) {
  try {
      TxnInfo txnInfo = checkTxn(txn);
      return server.createObject(txnInfo.tid);
  } catch (IOException e) {
      throw new NetworkException("", e);
  }
    }
View Full Code Here

Examples of com.sun.sgs.impl.service.data.store.NetworkException

    protected void markForUpdateInternal(Transaction txn, long oid) {
  try {
      TxnInfo txnInfo = checkTxn(txn);
      server.markForUpdate(txnInfo.tid, oid);
  } catch (IOException e) {
      throw new NetworkException("", e);
  }
    }
View Full Code Here

Examples of com.sun.sgs.impl.service.data.store.NetworkException

    {
  try {
      TxnInfo txnInfo = checkTxn(txn);
      return server.getObject(txnInfo.tid, oid, forUpdate);
  } catch (IOException e) {
      throw new NetworkException("", e);
  }
    }
View Full Code Here

Examples of com.sun.sgs.impl.service.data.store.NetworkException

    protected void setObjectInternal(Transaction txn, long oid, byte[] data) {
  try {
      TxnInfo txnInfo = checkTxn(txn);
      server.setObject(txnInfo.tid, oid, data);
  } catch (IOException e) {
      throw new NetworkException("", e);
  }
    }
View Full Code Here

Examples of com.sun.sgs.impl.service.data.store.NetworkException

    {
  try {
      TxnInfo txnInfo = checkTxn(txn);
      server.setObjects(txnInfo.tid, oids, dataArray);
  } catch (IOException e) {
      throw new NetworkException("", e);
  }
    }
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.