Package com.puzzlebazar.shared

Examples of com.puzzlebazar.shared.ObjectNotFoundException


      UserImpl user = ofyTxn.get(UserImpl.class, userId);
      user.editFrom(updatedUser);
      ofyTxn.put(user);
      ofyTxn.getTxn().commit();
    } catch (NotFoundException e) {
      throw new ObjectNotFoundException("User not found, can't modify. Id = " + userId);
    } finally {
      if (ofyTxn.getTxn().isActive()) {
        ofyTxn.getTxn().rollback();
      }
    }
View Full Code Here

TOP

Related Classes of com.puzzlebazar.shared.ObjectNotFoundException

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.