Package randoop.main
Class WarnOnBadClassName
- java.lang.Object
-
- randoop.main.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 Summary
Constructors Constructor Description WarnOnBadClassName()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handle(String className)
Performs error handling behavior for bad class name.void
handle(String classname, Throwable e)
Performs error handling behavior for failure to read class due to exception.
-
-
-
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 interfaceClassNameErrorHandler
- 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 interfaceClassNameErrorHandler
- Parameters:
classname
- the class name to include in messagee
- the exception from loading class
-
-