Skip to Content
Packages@tuwaio/siwx-coreClassesSiwxSessionLifetimeExceededError

SiwxSessionLifetimeExceededError

Defined in: errors.ts:254 

Policy violation: expirationTime - issuedAt exceeds the allowed maximum lifetime. Code: SIWX_SESSION_LIFETIME_EXCEEDED. Not thrown by SIWX itself; see SiwxPolicyViolationError.

Extends

Constructors

Constructor

new SiwxSessionLifetimeExceededError(lifetimeSeconds, maxLifetimeSeconds): SiwxSessionLifetimeExceededError

Defined in: errors.ts:259 

Parameters

lifetimeSeconds

number

The lifetime of the message, in seconds.

maxLifetimeSeconds

number

The allowed maximum lifetime, in seconds.

Returns

SiwxSessionLifetimeExceededError

Overrides

SiwxPolicyViolationError.constructor

Properties

code

readonly code: string = 'SIWX_ERROR'

Defined in: errors.ts:18 

Machine-readable error code, for example SIWX_PARSE_ERROR. Each subclass passes its own code; SIWX_ERROR is used only by the base class.

Inherited from

SiwxPolicyViolationError.code


lifetimeSeconds

readonly lifetimeSeconds: number

Defined in: errors.ts:260 

The lifetime of the message, in seconds.


maxLifetimeSeconds

readonly maxLifetimeSeconds: number

Defined in: errors.ts:261 

The allowed maximum lifetime, in seconds.

Last updated on