1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
package org.apache.tapestry.components; |
16 |
|
|
17 |
|
import org.apache.hivemind.impl.MessageFormatter; |
18 |
|
import org.apache.tapestry.IComponent; |
19 |
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
final class ComponentMessages |
25 |
|
{ |
26 |
2 |
private static final MessageFormatter _formatter = new MessageFormatter(ComponentMessages.class); |
27 |
|
|
28 |
|
|
29 |
0 |
private ComponentMessages() { } |
30 |
|
|
31 |
|
static String unableToFormat(IComponent component, Object value, Throwable cause) |
32 |
|
{ |
33 |
1 |
return _formatter.format("unable-to-format", component.getExtendedId(), value, cause); |
34 |
|
} |
35 |
|
|
36 |
|
static String anyElementNotDefined() |
37 |
|
{ |
38 |
0 |
return _formatter.getMessage("any-element-not-defined"); |
39 |
|
} |
40 |
|
|
41 |
|
static String textConversionError(Throwable cause) |
42 |
|
{ |
43 |
0 |
return _formatter.format("text-conversion-error", cause); |
44 |
|
} |
45 |
|
|
46 |
|
static String keySqueezeError(IComponent component, Object value, Throwable cause) |
47 |
|
{ |
48 |
1 |
return _formatter.format("squeeze-primary-key-error", component.getExtendedId(), value, cause); |
49 |
|
} |
50 |
|
} |