MCPcopy Create free account
hub / github.com/EQuimper/nodejs-api-boilerplate / constructor

Method constructor

src/services/error.js:31–37  ·  view source on GitHub ↗

* Creates an API error. * * @param {String} message - Error message. * @param {Number} status - HTTP status code of error. * @param {Boolean} isPublic - Whether the message should be visible to user or not.

(
    message,
    status = httpStatus.INTERNAL_SERVER_ERROR,
    isPublic = false,
  )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected