1 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 public static String missingNamePattern(String methodPattern) 25 { 26 return _formatter.format("missing-name-pattern", methodPattern); 27 } 28 29 public static String invalidNamePattern(String methodPattern) 30 { 31 return _formatter.format("invalid-name-pattern", methodPattern); 32 } 33 34 public static String invalidParametersPattern(String methodPattern) 35 { 36 return _formatter.format("invalid-parameters-pattern", methodPattern); 37 } 38 39 public static String exceptionAtLocation(Location location, Throwable cause) 40 { 41 return _formatter.format("exception-at-location", location, cause); 42 } 43 } 44 | Popular Tags |