Skip to content

basalt / comments/src / CommentParentNotFoundError

Class: CommentParentNotFoundError ​

Defined in: comments/src/comments.ts:50

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).

Extends ​

Constructors ​

Constructor ​

> new CommentParentNotFoundError(): CommentParentNotFoundError

Defined in: comments/src/comments.ts:52

Returns ​

CommentParentNotFoundError

Overrides ​

BasaltError.constructor

Properties ​

code ​

> readonly code: string

Defined in: core/src/errors.ts:25

Inherited from ​

BasaltError.code


details? ​

> readonly optional details?: 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.details


status ​

> readonly status: 400 = 400

Defined in: comments/src/comments.ts:51

Released under the MIT License.