method Fault.build
Fault.build(type)

Builder for Fault instructions. Suitable for service-specific faults only.

Examples

Example 1

const fault = Fault.build('payment cancelled');

Parameters

type

The type of the raised fault.

Return Type

Throws

TypeError

See

Usage

import { Fault } from ".";