Global

Methods

createError(name, ParentError, options) → {CustomError}

Source:
Creates new custom Error constructor.
Parameters:
Name Type Description
name string error name
ParentError Error Error to inherit from (built-in or custom error)
options ErrorOptions options to override global options
Returns:
Type
CustomError

Type Definitions

CustomError

Source:
Properties:
Name Type Description
name string error name
message string error message
stack string error stack trace
details Object error details
names Array.<(Array|string)> hierarchy of extended/parent error names
Type:
  • Error

ErrorOptions

Source:
Properties:
Name Type Description
cleanStackTraces boolean should stack trace be cleaned up from node internals
Type:
  • Object