mirror of
https://github.com/kottster/kottster.git
synced 2026-02-20 01:05:11 +08:00
* feat: Add API references * docs: Add links to API reference, add new pages * fix: Remove src/index.ts * fix: Update typedoc configs
13 lines
360 B
TypeScript
13 lines
360 B
TypeScript
import { ErrorCode } from "../models/errorCode.model";
|
|
import { ProcedureError } from "./procedureError";
|
|
|
|
export class ValidationError extends ProcedureError {
|
|
constructor(
|
|
message: string,
|
|
public field?: string,
|
|
context?: Record<string, any>
|
|
) {
|
|
super(message, ErrorCode.validationError, context);
|
|
this.name = 'ValidationError';
|
|
}
|
|
} |