Package org.jboss.msc.value
Class ErrorMessage
- java.lang.Object
-
- org.jboss.msc.value.ErrorMessage
-
class ErrorMessage extends java.lang.Object
Utility class that generates a verbose message for error description.
-
-
Constructor Summary
Constructors Constructor Description ErrorMessage()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static void
appendParameterList(java.lang.StringBuffer stringBuffer, java.util.List<? extends Value<java.lang.Class<?>>> parameterTypes)
Appends a list of parameter types tostringBuffer
.static java.lang.String
noSuchConstructor(java.lang.Class<?> targetClass, java.util.List<? extends Value<java.lang.Class<?>>> parameterTypes)
Returns a message describing aNoSuchMethodException
that occurred on a constructor lookup.static java.lang.String
noSuchMethod(java.lang.Class<?> targetClass, java.lang.String methodName, java.util.List<? extends Value<java.lang.Class<?>>> parameterTypes)
Returns a message describing aNoSuchMethodException
that occurred on a method lookup.
-
-
-
Method Detail
-
noSuchMethod
public static java.lang.String noSuchMethod(java.lang.Class<?> targetClass, java.lang.String methodName, java.util.List<? extends Value<java.lang.Class<?>>> parameterTypes)
Returns a message describing aNoSuchMethodException
that occurred on a method lookup.- Parameters:
targetClass
- the target class of the not found methodmethodName
- the name of the not found methodparameterTypes
- parameter list of the not found method- Returns:
- the error message
-
noSuchConstructor
public static java.lang.String noSuchConstructor(java.lang.Class<?> targetClass, java.util.List<? extends Value<java.lang.Class<?>>> parameterTypes)
Returns a message describing aNoSuchMethodException
that occurred on a constructor lookup.- Parameters:
targetClass
- the target class of the not found constructorparameterTypes
- parameter list of the not found constructor- Returns:
- the error message
-
appendParameterList
private static void appendParameterList(java.lang.StringBuffer stringBuffer, java.util.List<? extends Value<java.lang.Class<?>>> parameterTypes)
Appends a list of parameter types tostringBuffer
.
-
-