mirror of
https://github.com/rjNemo/deno_hello
synced 2026-06-10 03:46:39 +00:00
7 lines
233 B
TypeScript
7 lines
233 B
TypeScript
/**
|
|
* Custom error used to express input validation.
|
|
* The message must describe to the external user how to correct its input.
|
|
*
|
|
@example * `throw new ValidationError("Bad id")`
|
|
*/
|
|
export class ValidationError extends Error {}
|