Class 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 to stringBuffer.
      static java.lang.String noSuchConstructor​(java.lang.Class<?> targetClass, java.util.List<? extends Value<java.lang.Class<?>>> parameterTypes)
      Returns a message describing a NoSuchMethodException 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 a NoSuchMethodException that occurred on a method lookup.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ErrorMessage

        ErrorMessage()
    • 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 a NoSuchMethodException that occurred on a method lookup.
        Parameters:
        targetClass - the target class of the not found method
        methodName - the name of the not found method
        parameterTypes - 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 a NoSuchMethodException that occurred on a constructor lookup.
        Parameters:
        targetClass - the target class of the not found constructor
        parameterTypes - 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 to stringBuffer.