English
Appearance
basalt / comments/src / CommentTooLongError
Defined in: comments/src/comments.ts:57
Base error for the whole ecosystem. The code is stable and part of the semver contract — apps can safely branch on codes.
code
BasaltError
> new CommentTooLongError(max): CommentTooLongError
max
CommentTooLongError
Defined in: comments/src/comments.ts:59
number
BasaltError.constructor
constructor
> readonly code: string
readonly
string
Defined in: core/src/errors.ts:25
BasaltError.code
> readonly optional details?: Record<string, unknown>
optional
Record
unknown
Defined in: core/src/errors.ts:28
Structured payload passed to the constructor, exactly as given (never sanitised here).
BasaltError.details
details
> readonly status: 400 = 400
400
Defined in: comments/src/comments.ts:58
basalt / comments/src / CommentTooLongError
Class: CommentTooLongError
Defined in: comments/src/comments.ts:57
Base error for the whole ecosystem. The
codeis stable and part of the semver contract — apps can safely branch on codes.Extends
BasaltErrorConstructors
Constructor
> new CommentTooLongError(
max):CommentTooLongErrorDefined in: comments/src/comments.ts:59
Parameters
max
numberReturns
CommentTooLongErrorOverrides
BasaltError.constructorProperties
code
>
readonlycode:stringDefined in: core/src/errors.ts:25
Inherited from
BasaltError.codedetails?
>
readonlyoptionaldetails?:Record<string,unknown>Defined in: core/src/errors.ts:28
Structured payload passed to the constructor, exactly as given (never sanitised here).
Inherited from
BasaltError.detailsstatus
>
readonlystatus:400=400Defined in: comments/src/comments.ts:58