RegexExceptionClassifier

@Singleton
@Requires(property = "airbyte.connector.exception-classifiers.regex.rules")
class RegexExceptionClassifier(@Value(value = "${airbyte.connector.exception-classifiers.regex.order:10}") val orderValue: Int, val rules: List<RegexExceptionClassifierRule>) : RuleBasedExceptionClassifier<RegexExceptionClassifierRule>

ExceptionClassifier implementation based on regexes applied to the exception message.

Constructors

Link copied to clipboard
constructor(@Value(value = "${airbyte.connector.exception-classifiers.regex.order:10}") orderValue: Int, rules: List<RegexExceptionClassifierRule>)

Properties

Link copied to clipboard
open override val orderValue: Int

Convenience val for getOrder.

Link copied to clipboard

List of rules to match for.

Functions

Link copied to clipboard
open override fun classify(e: Throwable): ConnectorError?

Classifies e into a ConnectorError if possible, null otherwise.

Link copied to clipboard
open override fun getOrder(): Int