Skip to main content

Crate riffdb_errors

Crate riffdb_errors 

Source
Expand description

Transport-neutral, public-safe errors for RiffDB.

Declared business outcomes are contract values and intentionally do not appear in this crate. PublicError describes failures outside that outcome algebra without retaining untrusted diagnostic text or internal error sources.

Structs§

ApplicationError
One fully checked bounded application-semantic failure.
ApplicationErrorContext
Bounded symbolic context for one application failure.
ApplicationErrorContextError
A symbolic context rejected before it could reach a public error.
ApplicationErrorHintError
An application hint did not refine the compatible kernel classification.
ApplicationSourceSpan
Checked half-open source span in submitted RiffQL.
EmergencyInternalFailure
Closed emergency failure when an internal incident cannot be identified.
IncidentIdSourceError
A bounded, public-safe failure to obtain a fresh incident identifier.
InternalError
An internal failure retaining its source for trusted tracing.
PublicError
A failure safe to display, serialize, or map at a public transport boundary.
ValidationIssue
One stable validation code associated with a structured path.
ValidationIssues
A non-empty bounded collection of validation issues.
ValidationPath
A bounded path to a value that failed validation.

Enums§

ApplicationErrorCategory
Coarse application failure category.
ApplicationErrorCode
Closed stable code registry for application-semantic failures.
ApplicationFixCode
Closed machine-actionable remediation.
ApplicationOperation
Closed application operation inventory used only for public-safe context.
ApplicationRecoveryAction
Closed application recovery action.
DefectScope
What a defect puts in doubt (ADR-0250).
ErrorClass
A protocol-neutral classification for a public failure.
PublicErrorDetails
Structured, caller-safe detail for a public failure.
PublicErrorKind
The closed set of failures that RiffDB may expose to an untrusted caller.
PublicErrorStatusCode
Authoritative status code carried for a public error on the gRPC wire.
RecoveryAction
Safe, protocol-neutral recovery guidance for a public failure.
ReplicationStreamErrorV3
Closed, payload-free replication negotiation or stream refusal.
ValidationCode
A stable, caller-safe explanation for one validation failure.
ValidationIssuesError
A failure to construct a bounded collection of validation issues.
ValidationPathError
A failure to construct a bounded validation path.
ValidationPathSegment
One non-secret location component in a validation issue.

Constants§

APPLICATION_ERROR_CODES
Complete v1 application error code registry in stable wire order.
APPLICATION_ERROR_ENVELOPE_VERSION
Version of the bounded application-semantic error envelope.
MAX_APPLICATION_ERROR_BYTES
Maximum encoded application-error details accepted at a public boundary.
MAX_APPLICATION_FIXES
Maximum number of closed remediation codes in one application error.
MAX_APPLICATION_SOURCE_OFFSET
Maximum RiffQL source offset retained in a public error.
MAX_APPLICATION_SYMBOL_BYTES
Maximum bytes in one application operation or path symbol.
MAX_APPLICATION_SYMBOL_PATH_SEGMENTS
Maximum number of symbolic path segments in an application error.
MAX_VALIDATION_ISSUES
The maximum number of validation issues returned for one request.
MAX_VALIDATION_PATH_SEGMENTS
The maximum number of segments in one validation path.

Traits§

IncidentIdSource
Consumer-owned source for fresh opaque incident identifiers.