public void configurationError(ConfigurationErrorEvent event) { fireError(event.getType(), event.getPropertyName(), event.getPropertyValue(), event.getCause()); }
/** * Creates a {@code ConfigurationErrorEvent} object based on the * passed in parameters. This is called by {@code fireError()} if it * decides that an event needs to be generated. * * @param type the event's type * @param propName the name of the affected property (can be <b>null</b>) * @param propValue the value of the affected property (can be <b>null</b>) * @param ex the {@code Throwable} object that caused this error * event * @return the event object * @since 1.4 */ protected ConfigurationErrorEvent createErrorEvent(int type, String propName, Object propValue, Throwable ex) { return new ConfigurationErrorEvent(this, type, propName, propValue, ex); }
@Override public void configurationError(ConfigurationErrorEvent event) { if (event.getSource() instanceof XMLConfiguration) { for (ConfigurationErrorListener listener : getErrorListeners()) { listener.configurationError(event); } } if (event.getType() == AbstractFileConfiguration.EVENT_RELOAD) { if (isThrowable(event.getCause())) { throw new ConfigurationRuntimeException(event.getCause()); } } }
public void configurationError(ConfigurationErrorEvent event) { // Throw a runtime exception throw new ConfigurationRuntimeException(event.getCause()); } });
@Override public void configurationError(ConfigurationErrorEvent event) { if (event.getSource() instanceof XMLConfiguration) { for (ConfigurationErrorListener listener : getErrorListeners()) { listener.configurationError(event); } } if (event.getType() == AbstractFileConfiguration.EVENT_RELOAD) { if (isThrowable(event.getCause())) { throw new ConfigurationRuntimeException(event.getCause()); } } }
public void configurationError(ConfigurationErrorEvent event) { getLogger().warn("Internal error", event.getCause()); } });
public void configurationError(ConfigurationErrorEvent event) { fireError(event.getType(), event.getPropertyName(), event.getPropertyValue(), event.getCause()); }
public void configurationError(ConfigurationErrorEvent event) { // Throw a runtime exception throw new ConfigurationRuntimeException(event.getCause()); } });
/** * Creates a {@code ConfigurationErrorEvent} object based on the * passed in parameters. This is called by {@code fireError()} if it * decides that an event needs to be generated. * * @param type the event's type * @param propName the name of the affected property (can be <b>null</b>) * @param propValue the value of the affected property (can be <b>null</b>) * @param ex the {@code Throwable} object that caused this error * event * @return the event object * @since 1.4 */ protected ConfigurationErrorEvent createErrorEvent(int type, String propName, Object propValue, Throwable ex) { return new ConfigurationErrorEvent(this, type, propName, propValue, ex); }
public void configurationError(ConfigurationErrorEvent event) { getLogger().warn("Internal error", event.getCause()); } });
lastConfigurationErrorEvent.getCause()); lastConfigurationErrorEvent = null;
lastConfigurationErrorEvent.getCause()); lastConfigurationErrorEvent = null;