Skip to content

Commit

Permalink
Add MissingElementError
Browse files Browse the repository at this point in the history
  • Loading branch information
domoscargin committed Sep 5, 2023
1 parent 57a0b0e commit a4c9d29
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/govuk/errors/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ export class GOVUKFrontendError extends Error {
name = 'GOVUKFrontendError'
}

/**
* Indicates that a Component's required HTML element is missing
*/
export class MissingElementError extends GOVUKFrontendError {
name = 'MissingElementError'
}

/**
* Indicates that GOV.UK Frontend is not supported
*/
Expand Down

0 comments on commit a4c9d29

Please sign in to comment.