public List<Class<RuntimeException>> getAllowedExceptions() { if (!allowedExceptions.isEmpty()) { return allowedExceptions; } else { return globalConfiguration.getAllowedExceptions().getExceptions(); } }
public List<Class<RuntimeException>> getAllowedExceptions() { if (!allowedExceptions.isEmpty()) { return allowedExceptions; } else { return globalConfiguration.getAllowedExceptions().getExceptions(); } }
public List<Class<RuntimeException>> getAllowedExceptions() { if (!allowedExceptions.isEmpty()) { return allowedExceptions; } else { return globalConfiguration.getAllowedExceptions().getExceptions(); } }
public ConfigurationBuilder allowedException(Class type) { if (!RuntimeException.class.isAssignableFrom(type)) { MappingUtils .throwMappingException("allowed-exception Type must extend java.lang.RuntimeException: " + type .getName()); } configuration.getAllowedExceptions().getExceptions().add(type); return this; }
public ConfigurationBuilder allowedException(Class type) { if (!RuntimeException.class.isAssignableFrom(type)) { MappingUtils.throwMappingException("allowed-exception Type must extend java.lang.RuntimeException: " + type.getName()); } configuration.getAllowedExceptions().getExceptions().add(type); return this; }
public ConfigurationBuilder allowedException(Class type) { if (!RuntimeException.class.isAssignableFrom(type)) { MappingUtils.throwMappingException( "allowed-exception Type must extend java.lang.RuntimeException: " + type.getName()); } configuration.getAllowedExceptions().getExceptions().add(type); return this; }