Skip to content

TErrorParams object

TErrorParams is an object representing parameters of the certain error and consists of the following fields:

type TErrorParams = {
    level: TErrorLevel;
    type: TError;
};

TErrorLevel

TErrorLevel represents the level of an error and can contain one of the following values:

  • error
  • warn
  • info
  • critical

TError

TError represents the type of an error and can contain one of the following values:

  • error
  • unhandledError
  • message
  • unhandledRejection