Skip to content

Commit

Permalink
Consent template not found error
Browse files Browse the repository at this point in the history
  • Loading branch information
okaycj committed Oct 17, 2024
1 parent b46c686 commit 34a84c6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/templates/src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,14 @@ export class TranslationNotFoundError extends Error {
super(`"${baseName}" translation not found.`);
}
}
/** Error thrown when researcher selects template that isn't available. */
export class ConsentTemplateNotFound extends Error {
/**
* This will let the researcher know that their template isn't found.
*
* @param template - Supplied name of consent template.
*/
public constructor(template: string) {
super(`Consent template "${template}" not found.`);
}
}

0 comments on commit 34a84c6

Please sign in to comment.