Skip to content

nooschain v0.1.0


nooschain / errors/domain-error / DomainError

Class: DomainError

Defined in: errors/domain-error.ts:23

Error thrown when NOOSChain deterministic domain rules reject an operation.

The code is intended for assertions and API error responses. details should help diagnose the failure but must not include secrets, plaintext, or private key material.

Extends

  • Error

Extended by

Constructors

Constructor

new DomainError(code, message, details?): DomainError

Defined in: errors/domain-error.ts:24

Parameters

code

string

message

string

details?

DomainErrorDetails

Returns

DomainError

Overrides

Error.constructor

Properties

code

readonly code: string

Defined in: errors/domain-error.ts:25


details?

readonly optional details?: DomainErrorDetails

Defined in: errors/domain-error.ts:27

Audience-first NOOSChain documentation.