Class: ErrorItem

BX.error. ErrorItem

new ErrorItem (location, error, primeErroropt)

ErrorItem object.

Parameters:
Name Type Attributes Description
location string

Name of the module or method where the error has occurred.

error Error | string

Description of the error.

primeError Error | string <optional>

A prime error that caused this exception. (optional)

Properties:
Name Type Description
location string

Name of the module or method where the error has occurred.

message string

Description of the error.

line int

Line number where the error occured.

fileName string

Name of the source file.

Source:

Methods

toString () → {string}

Returns the error string.

Returns:
  • string
Source: