Package randoop.main
Class ThrowClassNameError
- java.lang.Object
-
- randoop.main.ThrowClassNameError
-
- All Implemented Interfaces:
ClassNameErrorHandler
public class ThrowClassNameError extends Object implements ClassNameErrorHandler
ThrowClassNameError is used to handle a class name error by throwing anError
with the message.
-
-
Constructor Summary
Constructors Constructor Description ThrowClassNameError()
-
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
-
-