Package org.mockserver.load
Class LoadScenarioFromRecording.NoRecordedTrafficException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
org.mockserver.load.LoadScenarioFromRecording.NoRecordedTrafficException
- All Implemented Interfaces:
Serializable
- Enclosing class:
- LoadScenarioFromRecording
public static class LoadScenarioFromRecording.NoRecordedTrafficException
extends IllegalArgumentException
Raised when there is no recorded traffic to convert into a load scenario.
This is a state condition, not a malformed request: the caller's body is
well-formed and parsed, there is simply nothing recorded yet. The control plane maps it to
409 CONFLICT rather than 400 BAD_REQUEST so a caller can tell "record some
traffic first" apart from "your request body is wrong". It extends
IllegalArgumentException so existing callers that catch that keep working.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NoRecordedTrafficException
public NoRecordedTrafficException()
-