mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-30 11:42:26 +08:00
13 lines
229 B
TypeScript
13 lines
229 B
TypeScript
import HttpError from "./http_error.js";
|
|
|
|
class ValidationError extends HttpError {
|
|
|
|
constructor(message: string) {
|
|
super(message, 400)
|
|
this.name = "ValidationError";
|
|
}
|
|
|
|
}
|
|
|
|
export default ValidationError;
|