Examples of DbOperationFailedException


Examples of com.tensegrity.wpalo.client.exceptions.DbOperationFailedException

        return save(sessionId, (XUser) obj);
    } catch (OperationFailedException e) {
      e.printStackTrace();
      UserSession usrSession = getUserSession(sessionId);
     
      throw new DbOperationFailedException(
          usrSession.translate("couldNotSave", obj.getName(), e.getLocalizedMessage()), e);
    }
    return null;
  }
View Full Code Here

Examples of com.tensegrity.wpalo.client.exceptions.DbOperationFailedException

      } else if (type.equals(XRole.TYPE)) {
        message = userSession.translate("usersOrGroupsUsingThisRole");
      } else if (type.equals(XUser.TYPE)) {
        message = userSession.translate("viewsCreatedByThisUser");
      }
      throw new DbOperationFailedException(userSession.translate("couldNotDelete", xObj.getName(), message), e);
    }
  }
View Full Code Here

Examples of com.tensegrity.wpalo.client.exceptions.DbOperationFailedException

                ServerConnectionPool pool = ConnectionPoolManager.getInstance().getPool(acc, sessionId);
                 con = pool.getConnection("getDatabases");
                ((PaloAccountImpl) acc).setConnection(con);
              } catch (Throwable t) {
                ConnectionPoolManager.getInstance().disconnect(acc, sessionId, "getDatabases");
                throw new DbOperationFailedException(t.getMessage());
              }
              List <XDatabase> databases = new ArrayList<XDatabase>();
              for (Database db: con.getDatabases()) {
                if (db.getType() != Database.TYPE_SYSTEM &&
                  db.getType() != Database.TYPE_ATTRIBUTE &&
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.