refactor: 커스텀 예외 타입 공통 모듈 이전

This commit is contained in:
이상진 2025-09-27 20:47:41 +09:00
parent 5b3f2f929b
commit 00359f63d0
3 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
package com.sangdol.roomescape.common.exception
package com.sangdol.common.types.exception
import org.springframework.http.HttpStatus
import com.sangdol.common.types.web.HttpStatus
enum class CommonErrorCode(
override val httpStatus: HttpStatus,

View File

@ -1,6 +1,6 @@
package com.sangdol.roomescape.common.exception
package com.sangdol.common.types.exception
import org.springframework.http.HttpStatus
import com.sangdol.common.types.web.HttpStatus
interface ErrorCode {
val httpStatus: HttpStatus

View File

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