Package org.prevayler.socketserver.transactions

Examples of org.prevayler.socketserver.transactions.ThrownException


        Serializable result;
        TransactionWithQuery transaction = (TransactionWithQuery) t;
        try {
          result = (Serializable) prevayler.execute(transaction);
        } catch (Exception e) {
          result = new ThrownException(e);
        }

        o = new ObjectOutputStream(socket.getOutputStream());
        o.writeObject(result);
      }
View Full Code Here


    out = new ObjectOutputStream(socket.getOutputStream());
    out.writeObject(transaction);
    in = new ObjectInputStream(socket.getInputStream());
    Object result = in.readObject();
    if (result instanceof ThrownException) {
      ThrownException thrownException = (ThrownException) result;
      throw thrownException.exception;
    }
    return (Serializable) result;
  }
View Full Code Here

TOP

Related Classes of org.prevayler.socketserver.transactions.ThrownException

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.