Package randoop.main

Class WarnOnBadClassName

  • All Implemented Interfaces:
    ClassNameErrorHandler

    public class WarnOnBadClassName
    extends Object
    implements ClassNameErrorHandler
    WarnOnBadClassName is used to handle a bad class name error by printing a warning to standard out, and is used to suppress an exception.
    • Constructor Detail

      • WarnOnBadClassName

        public WarnOnBadClassName()
    • Method Detail

      • handle

        public void handle​(String className)
        Description copied from interface: ClassNameErrorHandler
        Performs error handling behavior for bad class name.
        Specified by:
        handle in interface ClassNameErrorHandler
        Parameters:
        className - the name of the class for inclusion in messages
      • handle

        public void handle​(String classname,
                           Throwable e)
        Description copied from interface: ClassNameErrorHandler
        Performs error handling behavior for failure to read class due to exception.
        Specified by:
        handle in interface ClassNameErrorHandler
        Parameters:
        classname - the class name to include in message
        e - the exception from loading class