RetryablePattern

sealed class RetryablePattern(source)

Pattern for identifying retryable errors.

Inheritors

Types

Link copied to clipboard
class Custom(matcher: (String) -> Boolean) : RetryablePattern

Custom matching logic.

Link copied to clipboard
data class Keyword(val keyword: String) : RetryablePattern

Matches keywords in error messages.

Link copied to clipboard
data class Regex(val pattern: Regex) : RetryablePattern

Matches using a custom regex.

Link copied to clipboard
data class Status(val code: Int) : RetryablePattern

Matches HTTP status codes in error messages.

Functions

Link copied to clipboard
abstract fun matches(message: String): Boolean