Class

CustomAPIError

Custom Error Classes~CustomAPIError(message, statusCode)

Constructor

# new CustomAPIError(message, statusCode)

This class is the base class for all custom error classes

Parameters:
Name Type Description
message string

Error message

statusCode number

HTTP status code

View Source API/src/utils/errors.js, line 15

Extends

  • Error