Class CrdbException

All Implemented Interfaces:
Serializable

public final class CrdbException extends RuntimeException
Unchecked, typed failure that wraps a CrdbAnomaly. Callers get a single exception type with an anomaly() accessor and can branch exhaustively over the sealed hierarchy.
See Also:
  • Constructor Details

    • CrdbException

      public CrdbException(CrdbAnomaly anomaly)
  • Method Details

    • anomaly

      public CrdbAnomaly anomaly()
      The typed anomaly this exception carries.
    • describe

      public static String describe(CrdbAnomaly anomaly)
      Formats an anomaly for logging/telemetry using an exhaustive pattern-matching switch over the sealed hierarchy — the compiler guarantees every kind is handled.