Type alias SfErrorOptions<T>

SfErrorOptions<T>: {
    actions?: string[];
    cause?: unknown;
    context?: string;
    data?: T;
    exitCode?: number;
    message: string;
    name?: string;
}

Type Parameters

  • T extends ErrorDataProperties = ErrorDataProperties

Type declaration

  • Optional actions?: string[]
  • Optional cause?: unknown

    pass an Error. For convenience in catch blocks, code will check that it is, in fact, an Error

  • Optional context?: string
  • Optional data?: T
  • Optional exitCode?: number
  • message: string
  • Optional name?: string