Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

Dev Guide
Dev GuideUser GuidesLegal TermsGitHubDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

ApiFieldExistsError

ODP Node SDK / ODP / ApiFieldExistsError

ApiFieldExistsError

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor()

Signature

new ApiFieldExistsError(source: HttpError): ApiFieldExistsError;

Parameters

NameType
sourceHttpError

Returns

ApiFieldExistsError

Inherited from: ApiError.constructor

Defined in: src/Api/lib/ApiError.ts:4

Properties

code?

string

Inherited from: ApiError.code

Defined in: src/Api/lib/ApiV3.ts:78

message

string

Inherited from: ApiError.message

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1041

name

string

Inherited from: ApiError.name

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1040

response?

HttpResponse<V3ErrorResponse>

Inherited from: ApiError.response

Defined in: src/Api/lib/ApiV3.ts:79

stack?

string

Inherited from: ApiError.stack

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1042

prepareStackTrace?

Function

Type declaration

Optional override for formatting stack traces

See

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

Signature
(err: Error, stackTraces: CallSite[]): any;
Parameters
NameType
errError
stackTracesCallSite[]
Returns

any

Inherited from: ApiError.prepareStackTrace

Defined in: node_modules/@types/node/globals.d.ts:11

stackTraceLimit

Static number

Inherited from: ApiError.stackTraceLimit

Defined in: node_modules/@types/node/globals.d.ts:13

Methods

captureStackTrace()

Create .stack property on a target object

Signature

Static captureStackTrace(targetObject: object, constructorOpt?: Function): void;

Parameters

NameType
targetObjectobject
constructorOpt?Function

Returns

void

Inherited from: ApiError.captureStackTrace

Defined in: node_modules/@types/node/globals.d.ts:4