public String raiseAlarm(java.lang.String alarmType, java.lang.String instanceID, AlarmLevel level, String message, Throwable cause) throws NullPointerException, IllegalArgumentException,
FacilityException {
if (alarmType == null) {
throw new NullPointerException("AlarmType must not be null");
}
if (instanceID == null) {
throw new NullPointerException("InstanceID must not be null");
}
if (level == null) {
throw new NullPointerException("AlarmLevel must not be null");
}
if (message == null) {
throw new NullPointerException("Message must not be null");
}
if (level.isClear()) {
throw new IllegalArgumentException("Raised alarm must not have level equal to AlarmLevel.CLEAR");
}
try {
return this.mBean.raiseAlarm(getNotificationSource(), alarmType, instanceID, level, message, cause);
} catch (Exception e) {
throw new FacilityException("Failed to raise alarm for source: " + getNotificationSource(), e);
}
}