Interface CrdbAnomaly

All Known Implementing Classes:
CircuitOpen, ConnectionAnomaly, RetryExhausted, SerializationConflict, UnknownAnomaly

public sealed interface CrdbAnomaly permits SerializationConflict, ConnectionAnomaly, RetryExhausted, CircuitOpen, UnknownAnomaly
A typed CockroachDB failure. Sealed so that every kind can be handled with an exhaustive pattern-matching switch (no default needed).
  • Method Summary

    Modifier and Type
    Method
    Description
    A human-readable description of the anomaly.
    The SQLSTATE associated with this anomaly, or null if not applicable.
  • Method Details

    • sqlState

      String sqlState()
      The SQLSTATE associated with this anomaly, or null if not applicable.
    • message

      String message()
      A human-readable description of the anomaly.