Class RandoopSpecificationError

  • All Implemented Interfaces:
    Serializable

    public class RandoopSpecificationError
    extends Error
    Indicates a problem creating ExecutableBooleanExpression (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 Detail

      • file

        Path file
        Which file was being read when the error occurred.
      • thisMessage

        String thisMessage
    • Constructor Detail

      • RandoopSpecificationError

        RandoopSpecificationError​(String message)
        Create a RandoopSpecificationError with the given message.
        Parameters:
        message - the error message
      • RandoopSpecificationError

        RandoopSpecificationError​(String message,
                                  Throwable cause)
        Create a RandoopSpecificationError with the given message and cause.
        Parameters:
        message - the error message
        cause - 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)