Class VCRCassetteMissingException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.redis.vl.test.vcr.VCRCassetteMissingException
All Implemented Interfaces:
Serializable

public class VCRCassetteMissingException extends RuntimeException
Exception thrown when a VCR cassette is not found during playback mode.

This exception indicates that the test expected to find a recorded cassette but none was available. To fix this, run the test in RECORD or PLAYBACK_OR_RECORD mode first.

See Also:
  • Constructor Details

    • VCRCassetteMissingException

      public VCRCassetteMissingException(String cassetteKey, String testId)
      Creates a new exception.
      Parameters:
      cassetteKey - the key that was not found
      testId - the test identifier
  • Method Details

    • getCassetteKey

      public String getCassetteKey()
      Gets the cassette key that was not found.
      Returns:
      the cassette key
    • getTestId

      public String getTestId()
      Gets the test identifier.
      Returns:
      the test ID