public void createAlarm(ComponentID alarmSource, Level alarmLevel, java.lang.String alarmType, java.lang.String message, java.lang.Throwable cause, long timestamp, boolean allowCauseNull) throws NullPointerException, IllegalArgumentException, UnrecognizedComponentException, FacilityException { if (alarmSource == null) { throw new NullPointerException("AlarmSource must not be null"); } if (alarmLevel == null) { throw new NullPointerException("AlarmLevel must not be null"); } if (alarmType == null) { throw new NullPointerException("AlarmType must not be null"); } if (message == null) { throw new NullPointerException("Message must not be null"); } if (!allowCauseNull && cause == null) { throw new NullPointerException("Cause must nto be null"); } if (!this.mBean.isRegisteredAlarmComponent(alarmSource)) { throw new UnrecognizedComponentException("Declared alarm source is not valid compoenent. Either it is nto able to create alarms or has been uninstalled"); } try { this.mBean.createAlarm(alarmSource, alarmLevel, alarmType, message, cause, timestamp); } catch (Exception e) { } }