[#20] 도메인별 예외 분리 #21

Merged
pricelees merged 37 commits from refactor/#20 into main 2025-07-24 02:48:53 +00:00
3 changed files with 7 additions and 8 deletions
Showing only changes of commit b880d0631b - Show all commits

View File

@ -1,8 +1,8 @@
package roomescape.auth.exception package roomescape.auth.exception
import roomescape.common.exception.RoomException import roomescape.common.exception.RoomescapeExceptionV2
class AuthException( class AuthException(
override val errorCode: AuthErrorCode, override val errorCode: AuthErrorCode,
override val message: String = errorCode.message override val message: String = errorCode.message
) : RoomException(errorCode, message) ) : RoomescapeExceptionV2(errorCode, message)

View File

@ -1,6 +0,0 @@
package roomescape.common.exception
open class RoomException(
open val errorCode: ErrorCode,
override val message: String = errorCode.message
) : RuntimeException(message)

View File

@ -9,3 +9,8 @@ class RoomescapeException(
) : RuntimeException(errorType.description) { ) : RuntimeException(errorType.description) {
constructor(errorType: ErrorType, httpStatus: HttpStatusCode) : this(errorType, null, httpStatus) constructor(errorType: ErrorType, httpStatus: HttpStatusCode) : this(errorType, null, httpStatus)
} }
open class RoomescapeExceptionV2(
open val errorCode: ErrorCode,
override val message: String = errorCode.message
) : RuntimeException(message)