CommunitySolidServer/src/util/errors/NotFoundHttpError.ts
2022-03-29 14:52:36 +02:00

16 lines
486 B
TypeScript

import type { HttpErrorOptions } from './HttpError';
import { generateHttpErrorClass } from './HttpError';
// eslint-disable-next-line @typescript-eslint/naming-convention
const BaseHttpError = generateHttpErrorClass(404, 'NotFoundHttpError');
/**
* An error thrown when no data was found for the requested identifier.
*/
export class NotFoundHttpError extends BaseHttpError {
public constructor(message?: string, options?: HttpErrorOptions) {
super(message, options);
}
}