Arthur 9d45201bf1
Improve dev experience, update docs (#117)
* feat: Add API references

* docs: Add links to API reference, add new pages

* fix: Remove src/index.ts

* fix: Update typedoc configs
2025-10-31 10:26:26 +03:00

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';
}
}