Package randoop.condition
Class RandoopSpecificationError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Error
-
- randoop.condition.RandoopSpecificationError
-
- All Implemented Interfaces:
Serializable
public class RandoopSpecificationError extends Error
Indicates a problem creatingExecutableBooleanExpression
(usually a syntax error in the condition text) or an exception thrown when evaluating it. This is a user error, not a bug in Randoop.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Path
file
Which file was being read when the error occurred.private static long
serialVersionUID
(package private) String
thisMessage
-
Constructor Summary
Constructors Constructor Description RandoopSpecificationError(String message)
Create aRandoopSpecificationError
with the given message.RandoopSpecificationError(String message, Throwable cause)
Create aRandoopSpecificationError
with the given message and cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMessage()
String
getThisMessage()
Set the local message (ignoring the message of the cause).void
setFile(Path file)
Indicate which file was being read when the error occurred.void
setThisMessage(String message)
Set the local message (ignoring the message of the cause).-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
file
Path file
Which file was being read when the error occurred.
-
thisMessage
String thisMessage
-
-
Constructor Detail
-
RandoopSpecificationError
RandoopSpecificationError(String message)
Create aRandoopSpecificationError
with the given message.- Parameters:
message
- the error message
-
RandoopSpecificationError
RandoopSpecificationError(String message, Throwable cause)
Create aRandoopSpecificationError
with the given message and cause.- Parameters:
message
- the error messagecause
- the causing exception
-
-
Method Detail
-
setFile
public void setFile(Path file)
Indicate which file was being read when the error occurred.- Parameters:
file
- the file
-
setThisMessage
public void setThisMessage(String message)
Set the local message (ignoring the message of the cause).- Parameters:
message
- the string to use as the local message for this Error
-
getThisMessage
public String getThisMessage()
Set the local message (ignoring the message of the cause).- Returns:
- the local message (ignoring the message of the cause)
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
-