jev Api Exception
fun jevApiException(status: Int, body: String? = null, requestId: String? = null, retryAfter: Duration? = null, headers: Map<String, List<String>> = emptyMap()): JevApiException(source)
The JevApiException subclass the client raises for HTTP status, for testing a caller's error handling: 429 gives a JevRateLimitException, 401 a JevAuthenticationException, and so on.
coEvery { jev.evaluate(any(), any(), any()) } throws jevApiException(429)Content copied to clipboard