Skip to main content

Class: BlockNotFoundError

The error class for 'block not found' errors. This error is thrown when the requested block is not found.

Extends

Constructors

new BlockNotFoundError()

new BlockNotFoundError(__namedParameters): BlockNotFoundError

Parameters

ParameterType

__namedParameters

BlockErrorParameters

Returns

BlockNotFoundError

Overrides

BaseError.constructor

Defined

@nilfoundation/niljs/src/errors/block.ts:17

Properties

cause?

optional cause: BaseError | Error;

The error cause.

Inherited from

BaseError.cause

Defined

@nilfoundation/niljs/src/errors/BaseError.ts:51


docsBaseUrl?

optional docsBaseUrl: string;

Docs base path.

Inherited from

BaseError.docsBaseUrl

Defined

@nilfoundation/niljs/src/errors/BaseError.ts:66


docsPath?

optional docsPath: string;

The path to the documentation of this error.

Inherited from

BaseError.docsPath

Defined

@nilfoundation/niljs/src/errors/BaseError.ts:58


isOperational

isOperational: boolean;

The flag that indicates if this error is operational. This is useful to differentiate operational errors from programming errors. It is recommended to always set this property to true when creating a custom error class.

Inherited from

BaseError.isOperational

Defined

@nilfoundation/niljs/src/errors/BaseError.ts:44


message

message: string;

Inherited from

BaseError.message

Defined in

../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es5.d.ts:1077


name

name: string;

Inherited from

BaseError.name

Defined in

../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es5.d.ts:1076


stack?

optional stack: string;

Inherited from

BaseError.stack

Defined in

../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es5.d.ts:1078


version?

optional version: string;

The version of the client.

Inherited from

BaseError.version

Defined

@nilfoundation/niljs/src/errors/BaseError.ts:62