diff --git a/backend/src/course/exception/CoursePermissionException.ts b/backend/src/course/exception/CoursePermissionException.ts new file mode 100644 index 00000000..18774c59 --- /dev/null +++ b/backend/src/course/exception/CoursePermissionException.ts @@ -0,0 +1,12 @@ +import { BaseException } from '../../common/exception/BaseException'; +import { HttpStatus } from '@nestjs/common'; + +export class CoursePermissionException extends BaseException { + constructor(id: number) { + super({ + code: 903, + message: `id:${id} 코스에 대한 권한이 없습니다.`, + status: HttpStatus.FORBIDDEN, + }); + } +}