Skip to main content

Class: CatchStepDefinition

A class representing a catch step definition. It extends the StepDefinition class and specifies the step type as Filter.

Extends​

Constructors​

Constructor​

new CatchStepDefinition(global, priority, transport, target, propertyKey, type, acceptedErrors): CatchStepDefinition

Parameters​

global​

boolean

priority​

number

transport​

ExecutionTransport

target​

ClassType

propertyKey​

string | symbol

type​

Filter

acceptedErrors​

ClassType<Error>[]

Returns​

CatchStepDefinition

Overrides​

StepDefinition.constructor

Properties​

acceptedErrors​

readonly acceptedErrors: ClassType<Error>[]


global​

readonly global: boolean

Inherited from​

StepDefinition.global


priority​

readonly priority: number

Inherited from​

StepDefinition.priority


propertyKey​

readonly propertyKey: string | symbol

Inherited from​

StepDefinition.propertyKey


target​

readonly target: ClassType

Inherited from​

StepDefinition.target


transport​

readonly transport: ExecutionTransport

Inherited from​

StepDefinition.transport


type​

readonly type: Filter

Overrides​

StepDefinition.type

Methods​

fromMetadata()​

static fromMetadata(sMM, sTM): StepDefinition

Creates a step definition from the provided metadata.

Parameters​

sMM​

StepMethodMetadata

The method metadata for the step.

sTM​

StepTargetMetadata

The target metadata for the step.

Returns​

StepDefinition

A new step definition based on the metadata.

Inherited from​

StepDefinition.fromMetadata