helpers/errors

Right Track Exception Handler

This module helps to handle and log exceptions that occur during the Right Track Database update and compilation process.

Source:

Members

(inner, constant) EXCEPTION_TYPE_ERROR :int

Source:
Default Value:
  • 1

Right Track Exception Type: Error

Type:
  • int

(inner, constant) EXCEPTION_TYPE_WARNING :int

Source:
Default Value:
  • 0

Right Track Exception Type: Warning

Type:
  • int

Methods

(inner) error(message, details, agencyId)

Source:

Add an Error to the list of Right Track Exceptions

Parameters:
Name Type Description
message string

Error Message

details string | undefined

Error Details

agencyId string | undefined

Agency Code of Agency invoking the Error

(inner) getErrorCount() → {Number}

Source:

Get the number of Right Track Errors

Returns:
Type
Number

(inner) getErrors() → {Array}

Source:

Get the list of all Right Track Errors

Returns:
Type
Array

(inner) getExceptions() → {Array}

Source:

Get the list of all Right Track Exceptions

Returns:
Type
Array

(inner) getWarningCount() → {Number}

Source:

Get the number of Right Track Warnings

Returns:
Type
Number

(inner) getWarnings() → {Array}

Source:

Get the list of all Right Track Warnings

Returns:
Type
Array

(inner) reset()

Source:

Reset the list of Right Track Exceptions

(inner) warning(message, details, agencyId)

Source:

Add a Warning to the list of Right Track Exceptions

Parameters:
Name Type Description
message string

Warning Message

details string | undefined

Warning Details

agencyId string | undefined

Agency Code of Agency invoking the Warning