yajsapi - Java Script high-level API
Yagna Contributor Guide

Class: CommandExecuted

yajsapi / Exports / executor/events / CommandExecuted

Class: CommandExecuted

executor/events.CommandExecuted

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

Parameters:

__namedParameters: Object

Returns: CommandExecuted

Inherited from: CommandEvent

Defined in: yajsapi/executor/events.ts:324

Properties

agr_id

Optional agr_id: undefined | string

Inherited from: CommandEvent.agr_id

Defined in: yajsapi/executor/events.ts:123

cmd_idx

cmd_idx: number

Inherited from: CommandEvent.cmd_idx

Defined in: yajsapi/executor/events.ts:312

command

Optional command: any

Defined in: yajsapi/executor/events.ts:322

message

Optional message: undefined | string

Defined in: yajsapi/executor/events.ts:324

success

Optional success: undefined | boolean

Defined in: yajsapi/executor/events.ts:323

task_id

Optional task_id: undefined | null | string

Inherited from: CommandEvent.task_id

Defined in: yajsapi/executor/events.ts:282

Methods

extract_exc_info

extract_exc_info(): [undefined | null | Error, YaEvent]

Extract exception information from this event.

Returns: [undefined | null | Error, YaEvent]

The extracted exception information and a copy of the event without the exception information.

Inherited from: CommandEvent

Defined in: yajsapi/executor/events.ts:17