From 0e8b71058af59d996d8c7a00102fa11f814356f1 Mon Sep 17 00:00:00 2001 From: koomchang Date: Sat, 9 Nov 2024 15:20:37 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=BD=94=EC=8A=A4=20=EC=88=98=EC=A0=95?= =?UTF-8?q?=ED=95=A0=20=EB=95=8C=20=EC=9D=B8=EC=A6=9D=20=EC=83=81=ED=83=9C?= =?UTF-8?q?=EC=97=90=EC=84=9C=20=EA=B6=8C=ED=95=9C=20=EC=97=86=EB=8A=94=20?= =?UTF-8?q?=EB=A6=AC=EC=86=8C=EC=8A=A4=20=EC=A0=91=EA=B7=BC=20=EC=BB=A4?= =?UTF-8?q?=EC=8A=A4=ED=85=80=20=EC=98=88=EC=99=B8=20=ED=81=B4=EB=9E=98?= =?UTF-8?q?=EC=8A=A4=20=EA=B5=AC=ED=98=84=20#83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../course/exception/CoursePermissionException.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 backend/src/course/exception/CoursePermissionException.ts 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, + }); + } +}