Skip to content

Commit

Permalink
add JSDoc string to MiddlewareError
Browse files Browse the repository at this point in the history
  • Loading branch information
rosado committed Jan 9, 2025
1 parent ceb8819 commit 73d58b1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/utils/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ export function errorTemplateContext () {
return { ...context }
}

/**
* Use this class if you want to display specific HTTP error page.
*
* Uses the `errorPages/error.njk` template, but it can be overriden via options.
*/
export class MiddlewareError extends Error {
/**
* @param {string} message
Expand Down

0 comments on commit 73d58b1

Please sign in to comment.