SchemaError

sealed class SchemaError : Error

Represents schema-related errors encountered during validation and compatibility checks.

Provides standardized error codes, a human-readable message, and structured detail about SDK/schema versions. All variants implement Error.

Inheritors

Types

Link copied to clipboard
data class Assertion(val detail: ErrorDetails, val err: String) : SchemaError

Validation error for structural or constraint violations in the schema or document.

Link copied to clipboard
data class Format(val detail: ErrorDetails, val err: String) : SchemaError

Formatting error indicating the schema's shape/content is not in the expected format.

Link copied to clipboard
data class Version(val detail: ErrorDetails, val err: String) : SchemaError

Version compatibility error for an unsupported or mismatched schema/document version.

Properties

Link copied to clipboard

Stable machine-readable error code.

Link copied to clipboard
open override val detail: ErrorDetails

Extra context about the SDK and schema versions involved.

Link copied to clipboard
open override val err: String

Low-level diagnostic message useful for logs.

Link copied to clipboard
open override val message: String

Human-readable explanation suitable for UI/logs.