NotesService: Throw NotInDBError when the note wasn't found

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2020-10-17 18:47:10 +02:00
parent dea3c1d393
commit ec8cf6d33e
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
3 changed files with 25 additions and 4 deletions

7
src/errors/errors.ts Normal file
View file

@ -0,0 +1,7 @@
export class NotInDBError extends Error {
name = 'NotInDBError';
}
export class ClientError extends Error {
name = 'ClientError';
}