1 |
| |
2 |
| |
3 |
| |
4 |
| |
5 |
| |
6 |
| |
7 |
| |
8 |
| |
9 |
| |
10 |
| |
11 |
| |
12 |
| |
13 |
| |
14 |
| |
15 |
| package org.apache.hivemind.methodmatch; |
16 |
| |
17 |
| import org.apache.hivemind.Location; |
18 |
| import org.apache.hivemind.impl.MessageFormatter; |
19 |
| |
20 |
| class MethodMatchMessages |
21 |
| { |
22 |
| protected static MessageFormatter _formatter = new MessageFormatter(MethodMatchMessages.class); |
23 |
| |
24 |
1
| public static String missingNamePattern(String methodPattern)
|
25 |
| { |
26 |
1
| return _formatter.format("missing-name-pattern", methodPattern);
|
27 |
| } |
28 |
| |
29 |
1
| public static String invalidNamePattern(String methodPattern)
|
30 |
| { |
31 |
1
| return _formatter.format("invalid-name-pattern", methodPattern);
|
32 |
| } |
33 |
| |
34 |
4
| public static String invalidParametersPattern(String methodPattern)
|
35 |
| { |
36 |
4
| return _formatter.format("invalid-parameters-pattern", methodPattern);
|
37 |
| } |
38 |
| |
39 |
1
| public static String exceptionAtLocation(Location location, Throwable cause)
|
40 |
| { |
41 |
1
| return _formatter.format("exception-at-location", location, cause);
|
42 |
| } |
43 |
| } |