ProjectionFailureReason

sealed interface ProjectionFailureReason

Why a proposition could not be projected (or was skipped). Use describe for a human-readable summary, or branch on the concrete subtype to react programmatically without parsing text.

Inheritors

Types

Link copied to clipboard

No predicate in the schema or relations matched the proposition.

Link copied to clipboard

The proposition was rejected by the projection policy.

Link copied to clipboard
data class TypeMismatch(val role: MentionRole, val actual: String, val expected: String) : ProjectionFailureReason

A mention's declared type did not match the relation's expected type.

Link copied to clipboard
data class UnresolvedMention(val role: MentionRole, val span: String? = null) : ProjectionFailureReason

A subject or object mention could not be resolved to an entity id.

Functions

Link copied to clipboard
abstract fun describe(): String

A concise human-readable rendering of this failure reason.