Package randoop.generation
Class RandoopGenerationError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Error
-
- randoop.generation.RandoopGenerationError
-
- All Implemented Interfaces:
Serializable
public class RandoopGenerationError extends Error
Error class to signal generation errors that should stop Randoop execution.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private Throwable
exception
The exception that was thrown.private TypedOperation
operation
The operation.private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description RandoopGenerationError(TypedOperation operation, Throwable exception)
Create aRandoopGenerationError
representing an error that occurs during the generation of a sequence for the given operation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Throwable
getException()
Return theThrowable
for this error.String
getInstantiatedOperation()
Return theString
representation of theTypedOperation
in this error.String
getOperationName()
Returns the name of thejava.lang.reflect.AccessibleObject
underlying the operation in this object.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
operation
private final TypedOperation operation
The operation.
-
exception
private final Throwable exception
The exception that was thrown.
-
-
Constructor Detail
-
RandoopGenerationError
RandoopGenerationError(TypedOperation operation, Throwable exception)
Create aRandoopGenerationError
representing an error that occurs during the generation of a sequence for the given operation.- Parameters:
operation
- the actual operationexception
- the exception thrown during generation
-
-
Method Detail
-
getOperationName
public String getOperationName()
Returns the name of thejava.lang.reflect.AccessibleObject
underlying the operation in this object.- Returns:
- the name of the reflection object for the operation
-
getInstantiatedOperation
public String getInstantiatedOperation()
Return theString
representation of theTypedOperation
in this error.- Returns:
- the
String
representation of the operation
-
getException
public Throwable getException()
Return theThrowable
for this error.- Returns:
- the
Throwable
for this error
-
-