mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-22 19:25:18 -04:00
NotesService: Throw NotInDBError
when the note wasn't found
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
273d9b2d19
commit
1f22f47327
3 changed files with 25 additions and 4 deletions
7
src/errors/errors.ts
Normal file
7
src/errors/errors.ts
Normal file
|
@ -0,0 +1,7 @@
|
|||
export class NotInDBError extends Error {
|
||||
name = 'NotInDBError';
|
||||
}
|
||||
|
||||
export class ClientError extends Error {
|
||||
name = 'ClientError';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue