Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface EnsureOptions<E>

Type parameters

  • E: Error

Hierarchy

  • EnsureOptions

Index

Properties

Properties

Optional Error

Error: Constructor<E>

Error type objects will be ensured against; if an object is not an instance of Error, ensure will call the function passed as a create argument or, otherwise, instantiate an Exception.

Optional capture

capture: undefined | false | true

Whether to use Error.captureStackTrace if running V8 to clean up the error stack trace when a new error is created. Default: false.

Optional normalize

normalize: boolean | NormalizeOptions

Whether to normalize the error. A boolean or an object with normalization options -see NormalizeOptions. Default: true.

Generated using TypeDoc