CodedErrorFields
constCodedErrorFields:object
Defined in: packages/core/src/error.ts:19
The stable error identity and repair hint shared by Arona’s tagged errors.
Spread into a Schema.TaggedError field record so every adapter declares the
same optional pair once:
class MyError extends Schema.TaggedError<MyError, Brand>()("MyError", { message: Schema.String, ...CodedErrorFields,}) {}code is for logs, metrics and API responses; repair says what to do next.
Tag names and messages stay free to change.
Type Declaration
Section titled “Type Declaration”
readonlycode:optional<String>
repair
Section titled “repair”
readonlyrepair:optional<String>