Skip to content

errors

Defined in: studiocms/packages/studiocms/src/errors.ts:19

Represents an error specific to the core functionality of StudioCMS. This class extends the StudioCMSError class and overrides the name property to provide a more specific error name.

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

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

StudioCMSCoreError

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 Core Error';

Defined in: studiocms/packages/studiocms/src/errors.ts:20

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/errors.ts:10

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

  • AstroUserError

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

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

StudioCMSError

AstroError.constructor

optional cause: unknown;

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

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

AstroError.hint

message: string;

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

AstroError.message

name: string = 'StudioCMS Error';

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

AstroError.name

optional stack: string;

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

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

AstroError.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^

AstroError.prepareStackTrace

static stackTraceLimit: number;

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

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

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

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

AstroError.is