Skip to content

sdk/errors

Defined in: studiocms/packages/studiocms/src/sdk/errors.ts:10

Represents an error specific to the StudioCMS SDK. This class extends the StudioCMSError class to provide additional context and functionality for errors occurring within the StudioCMS SDK.

new StudioCMS_SDK_Error(message: string, hint?: string): StudioCMS_SDK_Error

Defined in: node_modules/.pnpm/[email protected]_@[email protected]_jiti@[email protected]_typescript@[email protected]/node_modules/astro/dist/core/errors/errors.d.ts:101

string

string

StudioCMS_SDK_Error

StudioCMSError.constructor

optional cause: unknown;

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2022.error.d.ts:26

StudioCMSError.cause

hint: undefined | string;

Defined in: node_modules/.pnpm/[email protected]_@[email protected]_jiti@[email protected]_typescript@[email protected]/node_modules/astro/dist/core/errors/errors.d.ts:99

A message that explains to the user how they can fix the error.

StudioCMSError.hint

message: string;

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1077

StudioCMSError.message

name: string = 'StudioCMS SDK Error';

Defined in: studiocms/packages/studiocms/src/sdk/errors.ts:11

StudioCMSError.name

optional stack: string;

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1078

StudioCMSError.stack

type: ErrorTypes;

Defined in: node_modules/.pnpm/[email protected]_@[email protected]_jiti@[email protected]_typescript@[email protected]/node_modules/astro/dist/core/errors/errors.d.ts:95

StudioCMSError.type

static optional prepareStackTrace: (err: Error, stackTraces: CallSite[]) => any;

Defined in: node_modules/.pnpm/@[email protected]/node_modules/@types/node/globals.d.ts:98

Optional override for formatting stack traces

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces^

StudioCMSError.prepareStackTrace

static stackTraceLimit: number;

Defined in: node_modules/.pnpm/@[email protected]/node_modules/@types/node/globals.d.ts:100

StudioCMSError.stackTraceLimit

static captureStackTrace(targetObject: object, constructorOpt?: Function): void

Defined in: node_modules/.pnpm/@[email protected]/node_modules/@types/node/globals.d.ts:91

Create .stack property on a target object

object

Function

void

StudioCMSError.captureStackTrace

static captureStackTrace(targetObject: object, constructorOpt?: Function): void

Defined in: node_modules/.pnpm/@[email protected]/node_modules/@types/node/globals.d.ts:136

Create .stack property on a target object

object

Function

void

StudioCMSError.captureStackTrace

static is(err: unknown): err is AstroUserError

Defined in: node_modules/.pnpm/[email protected]_@[email protected]_jiti@[email protected]_typescript@[email protected]/node_modules/astro/dist/core/errors/errors.d.ts:102

unknown

err is AstroUserError

StudioCMSError.is


Defined in: studiocms/packages/studiocms/src/sdk/errors.ts:21

Represents an error specific to the StudioCMS cache operations. This class extends the StudioCMS_SDK_Error to provide more context about errors that occur within the caching mechanism of the StudioCMS.

new StudioCMSCacheError(message: string, hint?: string): StudioCMSCacheError

Defined in: node_modules/.pnpm/[email protected]_@[email protected]_jiti@[email protected]_typescript@[email protected]/node_modules/astro/dist/core/errors/errors.d.ts:101

string

string

StudioCMSCacheError

StudioCMS_SDK_Error.constructor

optional cause: unknown;

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2022.error.d.ts:26

StudioCMS_SDK_Error.cause

hint: undefined | string;

Defined in: node_modules/.pnpm/[email protected]_@[email protected]_jiti@[email protected]_typescript@[email protected]/node_modules/astro/dist/core/errors/errors.d.ts:99

A message that explains to the user how they can fix the error.

StudioCMS_SDK_Error.hint

message: string;

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1077

StudioCMS_SDK_Error.message

name: string = 'StudioCMS Cache Error';

Defined in: studiocms/packages/studiocms/src/sdk/errors.ts:22

StudioCMS_SDK_Error.name

optional stack: string;

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1078

StudioCMS_SDK_Error.stack

type: ErrorTypes;

Defined in: node_modules/.pnpm/[email protected]_@[email protected]_jiti@[email protected]_typescript@[email protected]/node_modules/astro/dist/core/errors/errors.d.ts:95

StudioCMS_SDK_Error.type

static optional prepareStackTrace: (err: Error, stackTraces: CallSite[]) => any;

Defined in: node_modules/.pnpm/@[email protected]/node_modules/@types/node/globals.d.ts:98

Optional override for formatting stack traces

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces^

StudioCMS_SDK_Error.prepareStackTrace

static stackTraceLimit: number;

Defined in: node_modules/.pnpm/@[email protected]/node_modules/@types/node/globals.d.ts:100

StudioCMS_SDK_Error.stackTraceLimit

static captureStackTrace(targetObject: object, constructorOpt?: Function): void

Defined in: node_modules/.pnpm/@[email protected]/node_modules/@types/node/globals.d.ts:91

Create .stack property on a target object

object

Function

void

StudioCMS_SDK_Error.captureStackTrace

static captureStackTrace(targetObject: object, constructorOpt?: Function): void

Defined in: node_modules/.pnpm/@[email protected]/node_modules/@types/node/globals.d.ts:136

Create .stack property on a target object

object

Function

void

StudioCMS_SDK_Error.captureStackTrace

static is(err: unknown): err is AstroUserError

Defined in: node_modules/.pnpm/[email protected]_@[email protected]_jiti@[email protected]_typescript@[email protected]/node_modules/astro/dist/core/errors/errors.d.ts:102

unknown

err is AstroUserError

StudioCMS_SDK_Error.is