mirror of
https://github.com/zadam/trilium.git
synced 2025-11-14 01:05:49 +01:00
introduced new exception classes for structured error reporting
This commit is contained in:
7
src/errors/not_found_error.js
Normal file
7
src/errors/not_found_error.js
Normal file
@@ -0,0 +1,7 @@
|
||||
class NotFoundError {
|
||||
constructor(message) {
|
||||
this.message = message;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = NotFoundError;
|
||||
7
src/errors/validation_error.js
Normal file
7
src/errors/validation_error.js
Normal file
@@ -0,0 +1,7 @@
|
||||
class ValidationError {
|
||||
constructor(message) {
|
||||
this.message = message;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ValidationError;
|
||||
Reference in New Issue
Block a user