| | |
| | | * |
| | | * @param pd |
| | | * The unknown property definition. |
| | | * @param p |
| | | * The visitor parameter if there was one. |
| | | * @return A new unknown property definition exception. |
| | | */ |
| | | public static PropertyException unknownPropertyDefinitionException( |
| | | final PropertyDefinition<?> pd, final Object p) { |
| | | public static PropertyException unknownPropertyDefinitionException(final PropertyDefinition<?> pd) { |
| | | return new PropertyException(pd, ERR_UNKNOWN_PROPERTY_DEFINITION_EXCEPTION.get( |
| | | pd.getName(), pd.getClass().getName())); |
| | | } |
| | |
| | | private static LocalizableMessage createMessage(final PropertyDefinition<?> pd, |
| | | final Object value) { |
| | | final PropertyDefinitionUsageBuilder builder = new PropertyDefinitionUsageBuilder(true); |
| | | return ERR_ILLEGAL_PROPERTY_VALUE_EXCEPTION.get(String.valueOf(value), pd.getName(), |
| | | builder.getUsage(pd)); |
| | | return ERR_ILLEGAL_PROPERTY_VALUE_EXCEPTION.get(value, pd.getName(), builder.getUsage(pd)); |
| | | } |
| | | |
| | | /** LocalizableMessage that explains the problem. */ |