Logo
Explore Help
Register Sign In
Dockery/Trilium
1
0
Fork 0
You've already forked Trilium
mirror of https://github.com/zadam/trilium.git synced 2025-11-14 01:05:49 +01:00
Code Issues Packages Projects Releases Activity
Files
39d45dc11b2388c65018f793fddf4936e6b68fdb
Trilium/src/errors/validation_error.ts

12 lines
232 B
TypeScript
Raw Normal View History

refactor(errors): extend errors from Error and add/assign statusCode this is in preparation for updating the routes/handleException method, to get rid of "any" (and improve in general)
2025-03-07 22:22:44 +01:00
class ValidationError extends Error {
statusCode: number;
server-ts: errors/*.js -> .ts
2024-02-16 22:50:49 +02:00
constructor(message: string) {
refactor(errors): extend errors from Error and add/assign statusCode this is in preparation for updating the routes/handleException method, to get rid of "any" (and improve in general)
2025-03-07 22:22:44 +01:00
super(message)
this.name = "ValidationError";
this.statusCode = 400;
introduced new exception classes for structured error reporting
2022-12-09 16:04:13 +01:00
}
refactor(errors): extend errors from Error and add/assign statusCode this is in preparation for updating the routes/handleException method, to get rid of "any" (and improve in general)
2025-03-07 22:22:44 +01:00
introduced new exception classes for structured error reporting
2022-12-09 16:04:13 +01:00
}
chore(code): fix more js & ts files
2024-12-22 15:45:54 +02:00
export default ValidationError;
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.1 Page: 414ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API