MaskingFailure

class MaskingFailure(val resource: String, val reason: FailReason, val field: String? = null, val cause: Throwable? = null)

The event fired for each fail-closed drop, delivered to MaskingFailureSink.onFailClosed.

Resource-level failures (FailReason.NO_PRINCIPAL, FailReason.RESOLVER_ERROR) carry a null field; per-field failures carry the field name. The event never carries the protected value.

Deliberately a plain class, not a data class: Ihawu is the only constructor of events, so new properties can be added later without breaking any consumer — a data class's copy/componentN would freeze the shape and defeat that extensibility.

Constructors

Link copied to clipboard
constructor(resource: String, reason: FailReason, field: String? = null, cause: Throwable? = null)

Properties

Link copied to clipboard

The underlying exception, when one triggered the failure (e.g. a resolver error).

Link copied to clipboard

The field that was dropped, or null for a resource-level failure.

Link copied to clipboard

Why the engine failed closed.

Link copied to clipboard

The @IhawuResource name the failure occurred on.

Functions

Link copied to clipboard
open override fun toString(): String