xiaoju-survey/server/src/exceptions/surveyNotFoundException.ts

9 lines
277 B
TypeScript
Raw Normal View History

2024-01-30 14:19:45 +00:00
import { HttpException } from './httpException';
import { EXCEPTION_CODE } from 'src/enums/exceptionCode';
export class SurveyNotFoundException extends HttpException {
constructor(public readonly message: string) {
super(message, EXCEPTION_CODE.SURVEY_NOT_FOUND);
}
}