parentId does not name a comment of the same thread. A reply may only hang off a comment of the resource it is posted on: linking it to another thread would sidestep that thread's authorization (a caller allowed on an open resource replying "into" a restricted one, notifying its author).
basalt / comments/src / CommentParentNotFoundError
Class: CommentParentNotFoundError
Defined in: comments/src/comments.ts:50
parentIddoes not name a comment of the same thread. A reply may only hang off a comment of the resource it is posted on: linking it to another thread would sidestep that thread's authorization (a caller allowed on an open resource replying "into" a restricted one, notifying its author).Extends
BasaltErrorConstructors
Constructor
> new CommentParentNotFoundError():
CommentParentNotFoundErrorDefined in: comments/src/comments.ts:52
Returns
CommentParentNotFoundErrorOverrides
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:51