Files
cfw-autumn/shared/api/errors/classes/cusErrClasses.ts
2025-10-19 11:41:16 +01:00

17 lines
422 B
TypeScript

import { RecaseError } from "../base/RecaseError.js";
import { CusErrorCode } from "../codes/cusErrCodes.js";
/**
* Customer not found error
*/
export class CustomerNotFoundError extends RecaseError {
constructor(opts: { customerId: string }) {
super({
message: `Customer ${opts.customerId} not found`,
code: CusErrorCode.CustomerNotFound,
statusCode: 404,
});
this.name = "CustomerNotFoundError";
}
}