constructor()

in src/history/SubOrchestrationInstanceFailedEvent.ts [11:28]


    constructor(options: HistoryEventOptions) {
        super(
            HistoryEventType.SubOrchestrationInstanceFailed,
            options.eventId,
            options.isPlayed,
            options.timestamp
        );

        if (options.taskScheduledId === undefined) {
            throw new Error(
                "SubOrchestrationInstanceFailedEvent needs a task scheduled id provided."
            );
        }

        this.TaskScheduledId = options.taskScheduledId;
        this.Reason = options.reason;
        this.Details = options.details;
    }