mirror of
https://github.com/zadam/trilium.git
synced 2025-12-22 08:09:55 +01:00
chore(monorepo/server): move server-side source code
This commit is contained in:
12
apps/server/src/errors/validation_error.ts
Normal file
12
apps/server/src/errors/validation_error.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import HttpError from "./http_error.js";
|
||||
|
||||
class ValidationError extends HttpError {
|
||||
|
||||
constructor(message: string) {
|
||||
super(message, 400)
|
||||
this.name = "ValidationError";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export default ValidationError;
|
||||
Reference in New Issue
Block a user