Package org.rhq.enterprise.server.common

Examples of org.rhq.enterprise.server.common.ApplicationException


    }

    public void addNotificationLog(int alertId, AlertNotificationLog notificationLog) {
        Alert alert = entityManager.find(Alert.class, alertId);
        if (null == alert) {
            throw new ApplicationException("Alert not found with id [" + alertId + "].");
        }

        // make sure we don't exceed the max message length for the db vendor
        DatabaseType dbType = DatabaseTypeFactory.getDefaultDatabaseType();
        String message = dbType.getString(notificationLog.getMessage(), AlertNotificationLog.MESSAGE_MAX_LENGTH);
View Full Code Here


                }
                errors.add("Could not delete operation history [" + id + "]: " + e.getMessage());
            }
        }
        if (null != errors) {
            throw new ApplicationException("Failed to delete [" + errors.size() + "] of [" + historyIds.length
                + "] operation history records:" + errors);
        }
    }
View Full Code Here

TOP

Related Classes of org.rhq.enterprise.server.common.ApplicationException

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.