mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-20 02:05:21 -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
dea3c1d393
commit
ec8cf6d33e
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