/** * Default constructor. * * @param original the original property validation exception without the * origin information. * @param source the source where the property value has been defined. */ public PropertyValueWithSourceMessageBean( final PropertyValueConversionException original, final PropertyLocation source) { super( ConfigurationCode.INVALID_CONFIGURATION_DUE_TO_CONVERSION_WITH_SOURCE, original.getCause(), original.getMessageBean().getPropertyDescriptor(), original.getMessageBean().getValue()); this.source = source; }
throw new PropertyValueConversionException(new PropertyValueMessageBean( e, descriptor, value));