txtdot/src/errors/main.ts

18 lines
385 B
TypeScript
Raw Normal View History

2023-08-16 13:20:24 +03:00
export class EngineParseError extends Error {}
export class InvalidParameterError extends Error {}
export class LocalResourceError extends Error {}
2023-08-21 16:03:28 +03:00
2023-08-16 13:20:24 +03:00
export class NotHtmlMimetypeError extends Error {
url: string;
2023-08-21 16:03:28 +03:00
constructor(url: string) {
2023-08-16 13:20:24 +03:00
super();
2023-08-21 16:03:28 +03:00
this.url = url;
2023-08-16 13:20:24 +03:00
}
}
2023-08-21 16:03:28 +03:00
export interface IFastifyValidationError {
statusCode: number;
code: string;
validation: any;
}