Skip to content
Still using @dfinity/agent? Migrate to @icp-sdk/core!

CertificateTimeErrorCode

Defined in: packages/agent/src/errors.ts:215

  • ErrorCode

new CertificateTimeErrorCode(maxAgeInMinutes, certificateTime, currentTime, timeDiffMsecs, ageType): CertificateTimeErrorCode

Defined in: packages/agent/src/errors.ts:218

number

Date

Date

number

"past" | "future"

CertificateTimeErrorCode

ErrorCode.constructor

readonly ageType: "past" | "future"

Defined in: packages/agent/src/errors.ts:223


optional callContext: CallContext

Defined in: packages/agent/src/errors.ts:39

ErrorCode.callContext


readonly certificateTime: Date

Defined in: packages/agent/src/errors.ts:220


readonly currentTime: Date

Defined in: packages/agent/src/errors.ts:221


readonly isCertified: boolean = false

Defined in: packages/agent/src/errors.ts:41

ErrorCode.isCertified


readonly maxAgeInMinutes: number

Defined in: packages/agent/src/errors.ts:219


name: string = 'CertificateTimeErrorCode'

Defined in: packages/agent/src/errors.ts:216


optional requestContext: RequestContext

Defined in: packages/agent/src/errors.ts:38

ErrorCode.requestContext


readonly timeDiffMsecs: number

Defined in: packages/agent/src/errors.ts:222

toErrorMessage(): string

Defined in: packages/agent/src/errors.ts:229

string

ErrorCode.toErrorMessage


toString(): string

Defined in: packages/agent/src/errors.ts:45

string

ErrorCode.toString