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?
Returns
DomainError
Overrides
Error.constructor
Properties
code
readonlycode:string
Defined in: errors/domain-error.ts:25
details?
readonlyoptionaldetails?:DomainErrorDetails
Defined in: errors/domain-error.ts:27