Skip to content

Commit

Permalink
Refactor: Fix MissingParamError class constructor docstring (anuragha…
Browse files Browse the repository at this point in the history
  • Loading branch information
qwerty541 authored and setdebarr committed Jan 12, 2024
1 parent bc3dc3c commit f0f39fa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/common/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,10 @@ class CustomError extends Error {
*/
class MissingParamError extends Error {
/**
* @param {string[]} missedParams
* @param {string?=} secondaryMessage
* Missing query parameter error constructor.
*
* @param {string[]} missedParams An array of missing parameters names.
* @param {string=} secondaryMessage Optional secondary message to display.
*/
constructor(missedParams, secondaryMessage) {
const msg = `Missing params ${missedParams
Expand Down

0 comments on commit f0f39fa

Please sign in to comment.